Skip to main content

jacobian_elliptic

Function jacobian_elliptic 

Source
pub fn jacobian_elliptic(u: f64, m: f64) -> (f64, f64, f64)
Expand description

The Jacobian elliptic functions (sn(u | m), cn(u | m), dn(u | m)) with parameter m = k² for 0 <= m <= 1.

Computed with the descending Landen / arithmetic-geometric mean scheme (Abramowitz & Stegun 16.4), with series fallbacks at the endpoints m → 0 and m → 1. Returns NaNs for m outside [0, 1].