ellipj
Jacobi elliptic functions sn, cn and dn.
Category: Mathematics > Elementary Math
Syntax
[sn, cn, dn] = ellipj(u, m)
Returns the three Jacobi elliptic functions for argument u and parameter m.
Description
The Jacobi functions generalize sine and cosine. With m = 0 they reduce to sin(u), cos(u) and 1; with m = 1 they become tanh(u), sech(u) and sech(u). They satisfy sn^2 + cn^2 = 1 and dn^2 = 1 - m*sn^2. They are used for the exact motion of a pendulum and in elliptic filter design.
Input arguments
u- Real argument (array).
m- Parameter, with
0 <= m <= 1. Note thatmis the square of the modulusk.
Output arguments
sn, cn, dn- Values of
sn(u|m),cn(u|m)anddn(u|m).
Example
Jacobi functions for m = 0.3
[sn, cn, dn] = ellipj(0.5, 0.3)
sn^2 + cn^2
Output
sn = 0.4742
cn = 0.8804
dn = 0.9657
ans = 1