Author(s): H.-H. Umstätter | Library: MATHLIB |
Submitter: K.S. Kölbig | Submitted: 30.01.1980 |
Language: Fortran | Revised: 07.06.1992 |
Function subprograms CELFUN and WELFUN calculate, for complex
argument z and real modulus k, the Jacobian elliptic functions
,
and
.
The function
is the inverse of the elliptic
integral of the first kind and is defined implicitly by
The functions and
are defined by
For k = 0 and these functions are elementary:
Note that the Jacobian elliptic functions are doubly-periodic in the z-plane. For details see the relevant treatises or handbooks.
The double-precision version WELFUN is available only on computers which support a COMPLEX*16 Fortran data type.
Structure:
SUBROUTINE subprograms
User Entry Names: CELFUN, WELFUN
External References: MTLMTR, ABEND
Usage:
For (type COMPLEX),
(type
COMPLEX*16),
CALL tELFUN(Z,AK2,SN,CN,DN)
Method:
The Jacobian elliptic functions with complex argument z=x+iy are computed from their representations in terms of Jacobian elliptic functions with real arguments x or y (Ref. 1, formula 125.01). See also the Short Write-up for ELFUN (C318).
Accuracy:
CELFUN (except on CDC and Cray computers) has full single-precision accuracy. For most values of the arguments, WELFUN (and CELFUN on CDC and Cray computers) has an accuracy of approximately two significant digits less than the machine precision.
Restrictions:
,
where
is the complementary modulus, and
is the complete elliptic integral of the first kind.
(See entries
RELIKC and DELIKC in RELI1C (C347)).
Error handling:
Error C320.1: . The function value
is set equal to zero, and a message is written on Unit 6,
unless subroutine MTLSET (N002) has been called.
References: