Connect via MCP →

Enter Calculation

k is the modulus, 0 ≤ k ≤ 1; the parameter is m = k². All angles in radians.

Formula

Advertisement

Results

sn(u,k)
0.822636
Jacobi elliptic sine
cn(u,k)
0.568569
dn(u,k)
0.911492
Identity sn² + cn² 1 (should be 1)
Identity dn² + k²sn² 1 (should be 1)

What this calculator does

This tool evaluates the three Jacobi elliptic functions — \(\operatorname{sn}(u,k)\), \(\operatorname{cn}(u,k)\) and \(\operatorname{dn}(u,k)\) — for any real argument \(u\) and a modulus \(k\) in the range 0 to 1. These functions generalize the ordinary trigonometric functions and appear throughout physics and engineering: the exact motion of a pendulum, solitons (the KdV and sine-Gordon equations), elliptic filter design, and conformal maps.

Graphs of Jacobi elliptic functions sn, cn and dn plotted against u
The three Jacobi elliptic functions sn, cn and dn as periodic waves of the argument u.

Modulus, parameter and angle conventions

Conventions matter. This calculator uses the modulus \(k\), with \(0 \le k \le 1\). The related parameter is \(m = k^2\), and the modular angle is \(\alpha = \arcsin(k)\). If your source quotes \(m\) or \(\alpha\), convert first: \(k = \sqrt{m}\) or \(k = \sin(\alpha)\). The argument \(u\) and all angles are in radians.

How to use it

Enter the argument \(u\) (any real number) and the modulus \(k\) between 0 and 1, then read off \(\operatorname{sn}\), \(\operatorname{cn}\) and \(\operatorname{dn}\). The result panel also reports the two defining identities, which should both equal 1 — a built-in accuracy check.

Advertisement

The formula and algorithm

The amplitude \(\phi = \operatorname{am}(u,k)\) is defined implicitly by $$u = \int_{0}^{\phi} \frac{d\theta}{\sqrt{1 - k^2 \sin^2 \theta}}.$$ Then \(\operatorname{sn} = \sin(\phi)\), \(\operatorname{cn} = \cos(\phi)\) and \(\operatorname{dn} = \sqrt{1 - k^2 \sin^2 \phi}\). The calculator inverts the integral with the descending-Landen / Arithmetic-Geometric-Mean (AGM) method, which converges quadratically and reaches double precision in about nine steps. The limiting cases \(k = 0\) ($$\operatorname{sn} = \sin\!\left(u\right),\quad \operatorname{cn} = \cos\!\left(u\right),\quad \operatorname{dn} = 1$$) and \(k = 1\) ($$\operatorname{sn} = \tanh\!\left(u\right),\quad \operatorname{cn} = \operatorname{dn} = \frac{1}{\cosh\!\left(u\right)}$$) are handled by their closed forms to avoid AGM degeneracy.

Right triangle showing amplitude angle phi with sine and cosine giving sn and cn
The amplitude angle phi: its sine and cosine give sn and cn.

Worked example

Take \(u = 1.0\) and \(k = 0.5\) (so \(m = 0.25\)). The amplitude is \(\operatorname{am}(1, 0.5) \approx 0.95985\) rad, giving \(\operatorname{sn} \approx 0.81962\), \(\operatorname{cn} \approx 0.57280\) and $$\operatorname{dn} = \sqrt{1 - 0.25 \cdot 0.81962^2} \approx 0.91217.$$ Both identities check out: \(\operatorname{sn}^2 + \operatorname{cn}^2 \approx 1\) and \(\operatorname{dn}^2 + k^2\operatorname{sn}^2 \approx 1\).

Advertisement

FAQ

What are the periods? \(\operatorname{sn}\) and \(\operatorname{cn}\) have real period \(4K(k)\); \(\operatorname{dn}\) has period \(2K(k)\), where \(K(k)\) is the complete elliptic integral of the first kind.

What ranges do the values take? \(|\operatorname{sn}| \le 1\), \(|\operatorname{cn}| \le 1\), and \(k' \le \operatorname{dn} \le 1\) where \(k' = \sqrt{1 - k^2}\) is the complementary modulus.

Can k be greater than 1? Real-valued Jacobi functions require \(0 \le k \le 1\); values of \(k\) outside this range are clamped to the valid interval.

Last updated: