Skip to main content

ellip_normal

Function ellip_normal 

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

Ellipsoidal harmonic normalization constant $\gamma^p_n$

$$ \gamma^p_n = 8 \int_0^h dx \int_h^k dy \frac{(y^2 - x^2) (E^p_n(y) E^p_n(x))^2}{\sqrt{(k^2 - y^2)(y^2 - h^2)(h^2 - x^2)(k^2 - x^2)}} $$

Corresponds to scipy.special.ellip_normal.

§Arguments

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

Returns NaN if p is invalid, or if the integrals don’t converge.

§See also