XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ Jelli()

Sub Jelli ( U As  Double,
K As  Double,
Sn As  Double,
Cn As  Double,
Dn As  Double,
Optional Info As  Long 
)

Jacobi elliptic functions sn(u, k), cn(u,k), dn(u, k)

Purpose
This routine computes the Jacobi elliptic functions sn(u, k), cn(u,k) and dn(u, k).

The functions are defined as follows, given:
u = ∫ 1/√(1 - k^2(sin(t))^2) dt [0, φ]
The angle φ is called the amplitude and:
sn(u, k) = sinφ
cn(u, k) = cosφ
dn(u, k) = √(1 - k^2(sin(φ))^2)
Parameters
[in]UArgument u.
[in]KArgument k.
[out]Snsn(u, k) value.
[out]Cncn(u, k) value.
[out]Dndn(u, k) value.
[out]Info(Optional)
= 0: Successful exit.
= 1: Floating point range error.
Reference
boost/math/special_functions