_cn_dn_py

miepython.mie_nojit._cn_dn_py(m, x, n_pole)[source]

Calculate Mie coefficients c_n and d_n for the internal field of a sphere.

Parameters:
  • m (np.complex128) – Refractive index of the sphere relative to the surrounding medium.

  • x (float) – Size parameter of the sphere (2πr/λ).

  • n_pole (int) – Number of terms to calculate (n_pole).

Returns:

(np.ndarray, np.ndarray) – Arrays of c_n and d_n coefficients.