JacobiCN
The Jacobi elliptic function , one of the three primary Jacobi elliptic functions, in Wolfram/mpmath's parameter convention.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
JacobiCN!JacobiCN(u, m)the Jacobi elliptic cosine, argument u, parameter m.SageMath
jacobi_cn(u, m)mpmathellipfun('cn', u, m=m)Juliaenumeratio_jacobi(:cn, u, m)Typed signatures
| Type | Package | Applies |
|---|---|---|
(number, number) -> number | analytic | always |
Details
- , the same convention EllipticK / EllipticF use — not the elliptic modulus k itself.
- Numeric evaluation shares JacobiSN's descending Landen/arithmetic-geometric-mean kernel (Abramowitz & Stegun 16.4); see there for the m-outside-[0,1] and complex-u coverage this rests on.
- A genuinely complex m stays unevaluated.
- Exact at u = 0 (cn = 1, for any m), m = 0 (cn = Cos(u)), m = 1 (cn = 1/Cosh(u)), and the quarter period u = EllipticK(m) (cn = 0).
- Numeric only — a symbolic argument (outside the exact table above) stays unevaluated; a floating-point argument (or
N()) evaluates directly. N(x, d)past a double's digits runs the same AGM in BigDecimal for real and ; complex and other stay unevaluated there rather than print a double's digits as more.- Derivatives of every order in and in are closed forms in sn, cn, dn and the Jacobi epsilon (DLMF 22.13):
D,Seriesin at or at a symbolic point, andSeriesin at all give concrete coefficients. The -derivatives evaluate numerically for real and between 0 and 1.
Plot
Examples
23 more kept as data, checked against the oraclesBasic #
A floating-point argument evaluates directly to a decimal
live ↗InOut
Known value · mpmath 1.3.0 ellipfun
live ↗
InOut
live ↗
InOut
Scope #
m greater than 1, via the reciprocal-modulus transformation
live ↗InOut
Known value · mpmath 1.3.0 ellipfun
m less than 0, via the imaginary-modulus transformation
live ↗InOut
Known value · mpmath 1.3.0 ellipfun
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
Properties #
About
| Examples | 48 |
|---|---|
| Checked against | Wolfram Language 47 agree1 differSageMath 42 agree2 differ1 unevaluated2 errormpmath 35 agree1 unevaluatedJulia 35 agree1 error |
| Crosswalk | Wolfram LanguageSageMathmpmathJulia |
Implementation
mapped
mpmathpackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tsSymPy has no Jacobi elliptic functions: sympy.jacobi is the Jacobi polynomial P_n^(a,b), not sn/cn/dn, and there is no ellipfun (mpmath, Sage and Nemo carry them).
See also: JacobiSN, JacobiDN, JacobiAmplitude, EllipticK