nag_jacobian_elliptic (s21cbc) evaluates the Jacobian elliptic functions
,
and
given by
where
is a complex argument,
is a real argument (the
modulus) with
and
(the
amplitude of
) is defined by the integral
The above definitions can be extended for values of
(see
Salzer (1962)) by means of the formulae
where
.
Special values include
These functions are often simply written as
,
and
, thereby avoiding explicit reference to the argument
. They can also be expressed in terms of Jacobian theta functions (see
nag_jacobian_theta (s21ccc)).
Another nine elliptic functions may be computed via the formulae
In principle nag_jacobian_elliptic (s21cbc) is capable of achieving full relative precision in the computed values. However, the accuracy obtainable in practice depends on the accuracy of the C standard library elementary functions such as sin and cos.
The values of
,
and
are computed via the formulae
where
and
(the
complementary modulus).