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

◆ Jcn_sub()

Sub Jcn_sub ( Ret As  Double,
U As  Double,
K As  Double,
Optional Info As  Long 
)

Jacobi elliptic function cn(u, k) (Subroutine version)

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φ
Parameters
[out]RetJacobi elliptic function cn(u, k).
[in]UArgument u.
[in]KArgument k.
[out]Info(Optional)
= 0: Successful exit.
= 1: Floating point range error.
Reference
boost/math/special_functions