cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float elntsf (float u, float k); extern double elnts (double u, double k); extern long double elntsl (long double u, long double k); extern __float80 elntsw (__float80 u, __float80 k); extern __float128 elntsq (__float128 u, __float128 k); extern long_long_double elntsll (long_long_double u, long_long_double k); extern decimal_float elntsdf (decimal_float u, decimal_float k); extern decimal_double elntsd (decimal_double u, decimal_double k); extern decimal_long_double elntsdl (decimal_long_double u, decimal_long_double k); extern decimal_long_long_double elntsdll (decimal_long_long_double u, decimal_long_long_double k);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
The argument u is unrestricted, but accuracy deteriorates severely for u values outside the period of the elliptic function. The argument k (the modulus) is in [-1,+1].
See M. Abramowitz & I. A. Stegun, Handbook of Mathematical Functions, Chapter 16, for definitions of the Neville elliptic theta functions.