Skip to main content

ellip_harm

Function ellip_harm 

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

Ellipsoidal harmonic function $E^p_n(s)$

Also known as the Lamé function of the first kind, a solution of the Lamé equation

$$ (s^2 - h^2)(s^2 - k^2)E^{\prime\prime}(s) + s(2s^2 - h^2 - k^2)E^\prime(s) + (a - n(n+1) s^2)E(s) = 0 $$

for an eigenvalue $a$.

Corresponds to scipy.special.ellip_harm.

§Arguments

  • h2: $h^2$
  • k2: $k^2$, should be larger than h2
  • n: degree
  • p: order, 1 <= p <= 2n + 1
  • s: coordinate
  • signm, signn: the sign, +1.0 or -1.0, of the prefactor of the functions of type L (signm), M (signn), and N (signm * signn), see DLMF 29.12.1

Returns NaN if p or a sign is invalid.

§See also