|
NAG[s21cbc] NAG[nag_jacobian_elliptic] - Jacobian elliptic functions sn, cn and dn of complex argument
|
|
Calling Sequence
s21cbc(z, ak2, sn, cn, dn, 'fail'=fail)
nag_jacobian_elliptic(. . .)
Parameters
|
z - complex;
|
|
|
On entry: the argument of the functions.
|
|
.
|
|
|
ak2 - float;
|
|
|
On entry: the value of .
|
|
Constraint: . .
|
|
|
sn - assignable;
cn - assignable;
dn - assignable;
|
|
|
Note: On exit the variable sn will have a value of type complex, cn will have a value of type complex, dn will have a value of type complex.
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Description
|
|
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 s21ccc (nag_jacobian_theta)).
Another nine elliptic functions may be computed via the formulae
(see Abramowitz and Stegun (1972)).
|
|
Error Indicators and Warnings
|
|
"NE_COMPLEX"
On entry, . Constraint: and , where .
"NE_INTERNAL_ERROR"
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please consult NAG for assistance.
"NE_REAL"
On entry, . Constraint: .
|
|
Accuracy
|
|
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.
|
|
Further Comments
|
|
The values of , and are computed via the formulae
where and (the complementary modulus).
|
|
|
Examples
|
|
>
|
z := -2 +3*I:
ak2 := 0.25:
NAG:-s21cbc(z, ak2, sn, cn, dn):
|
|
|