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

◆ Hyp1f0_sub()

Sub Hyp1f0_sub ( Ret As  Double,
A As  Double,
Z As  Double,
Optional Info As  Long 
)

Hypergeometric function 1F0(a; z) (Subroutine version)

Purpose
Computes the hypergeometric function 1F0(a; z).
1F0(a; z) = Σ(a)k * z^k / k! (k = 1 to ∞)
Parameters
[out]RetHypergeometric function 1F0(a; z).
[in]AArgument a.
[in]ZArgument z. (Z <> 1 and (Z < 1 if A is not an integer))
[out]Info(Optional)
= 0: Successful exit.
= -2: The argument Z had an illegal value. (Z = 1 or (Z > 1 when A is not an integer))
= 1: Floating point range error.
Reference
boost/math/special_functions