Skip to main content

ellip_harm_2

Function ellip_harm_2 

Source
pub fn ellip_harm_2(h2: f64, k2: f64, n: u32, p: u32, s: f64) -> f64
Expand description

Ellipsoidal harmonic function $F^p_n(s)$

Also known as the Lamé function of the second kind, a solution of the Lamé equation (see ellip_harm), related to the one of the first kind by

$$ F^p_n(s) = (2n + 1) E^p_n(s) \int_0^{1/s} \frac{du}{(E^p_n(1/u))^2 \sqrt{(1 - u^2 k^2)(1 - u^2 h^2)}} $$

Corresponds to scipy.special.ellip_harm_2.

§Arguments

  • h2: $h^2$
  • k2: $k^2$, should be larger than h2
  • n: degree
  • p: order, 1 <= p <= 2n + 1
  • s: coordinate, s >= k

Returns NaN if p is invalid, or if the integral doesn’t converge, e.g. at s = k for the functions of type M and N (see ellip_harm).

§See also

  • ellip_harm: Ellipsoidal harmonic function $E^p_n(s)$
  • ellip_normal: Ellipsoidal harmonic normalization constant $\gamma^p_n$