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

◆ Chu()

Function Chu ( A As  Double,
B As  Double,
X As  Double,
Optional Info As  Long 
)

Confluent hypergeometric function U(a, b, x)

Purpose
Computes the confluent hypergeometric function U(a, b, x).
U(a, b, x) = (1/Γ(x)) * ∫ exp(-xt)t^(a-1)(1+t)^(b-a-1) dt [0, ∞]
Returns
Double
Confluent hypergeometric function U(a, b, x)
Parameters
[in]AArgument a.
[in]BArgument b.
[in]XArgument x. (X >= 0)
[out]Info(Optional)
= 0: Successful exit.
= -3: The argument X had an illegal value. (X < 0)
= 1: Floating point range error.
Note
This program is not valid if 1 + a - b is close to zero when x is small.