Member of the advanced class.
[sn, cn, dn] = ellipj(x, p)
[sn, cn, dn] = ellipj(x, p, tol)
Computes the Jacobi elliptic functions.
| Name | Description |
| x | Specifies the values for which you want to compute the Jacobi elliptic functions. x is a scalar, vector, or matrix. If p is a matrix, x is a matrix of the same size as p. |
| p | Specifies the elliptic modulus. p is a real scalar, vector, or matrix with values between 0 and 1. If x is a matrix, p is a matrix of the same size as x. |
| tol | Specifies the approximation tolerance. tol is a positive real number. The default is eps. |
| Name | Description |
| sn | Returns the Jacobi sn elliptic function. sn is a matrix of the same size as x or p. |
| cn | Returns the Jacobi cn elliptic function. cn is a matrix of the same size as x or p. |
| dn | Returns the Jacobi dn elliptic function. dn is a matrix of the same size as x or p. |
X = 0:0.01:1;
[SN, CN, DN] = ellipj(X, 0.5);
plot(X, SN)