Please replace %sn() with ellipj() returning the cn and dn Jacobi elliptic functions in addition to sn
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
%sn() returns only the sn Jacobi elliptic function. The common cn and dn ones are not directly available.
We propose to deprecate %sn(), then remove it later, and replace it with a new ellipj() function.
ellipj() would be designed as follows:
sn = ellipj(x, m) // Replaces %sn(x,m)
[sn, cn] = ellipj(x, m) // Returns the cn function in addition to sn
[sn, cn, dn] = ellipj(x, m) // Returns dn function in addition to sn and cn
st = ellipj(funNames, x, m) // Returns the Jacobi functions named in the funNames
// vector of strings among "sn" "cn" "dn" "ns" "nc" "nd".
// Values are returned through the st structure whose fields
// are the elements of funNames.
// Later, this syntax could be easily extendable to any of the other
// non trivial "cd" "cs" "dc" "ds" "sc" and "sd" Jacobi functions.
OTHER INFORMATION:
------------------
https://en.wikipedia.org/wiki/Jacobi_elliptic_functions