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

◆ Jcn()

Function Jcn ( U As  Double,
K As  Double,
Optional Info As  Long 
)

Jacobi elliptic function cn(u, k)

Purpose
Computes the Jacobi elliptic function cn(u, k).

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