Skip to main content

jacobi_elliptic

Function jacobi_elliptic 

Source
pub fn jacobi_elliptic<P, E, V>(u: V, k: V) -> (V, V, V)
where E: FloatElement, V: FloatVector<Element = E> + SpecializedTranscendentalMath<E>, P: Policy,
Expand description

(sn, cn, dn) at argument u and modulus k.

Only $k^2$ enters, so the sign of k is irrelevant and |k| > 1 is out of domain: $1 - k^2$ goes negative, its square root is NaN, and the NaN propagates on its own without a guard. k = 1 is the one modulus the ladder cannot walk (it starts at $k' = 0$ and never converges), and is taken by the hyperbolic limit instead.

Last built: 2026-09-08 21:35:55 UTC