XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ cbiry()

void cbiry ( doublecomplex  z,
int  id,
int  kode,
doublecomplex *  bi,
int *  info 
)

Computes the Airy function Bi(z) or its derivative Bi'(z) (complex argument)

Purpose
cbiry computes the Airy function Bi(z) or its derivative Bi'(z).
Bi(z) = (1/π) * ∫ (sin((1/3)t^3 + zt) + exp(-(1/3)t^3 + zt)) dt [0, ∞]
A scaling option is available to help avoid overflow.
Parameters
[in]zArgument z.
[in]idOrder of derivative.
= 0: Bi(z) is computed.
= 1: Bi'(z) is computed.
[in]kodeA parameter to indicate the scaling option.
= 1: No scaling.
= 2: Returns exponentially scaled value.
[out]biAiry function Bi(z) or its derivative Bi'(z).
If kode = 2, bi is scaled by exp(-|re((2/3)*z^(3/2))|).
If info < 0, returns bi = 0.
[out]info= 0: Successful exit.
= -2: The argument id had an illegal value. (id != 0 and id != 1)
= -3: The argument kode had an illegal value. (kode != 1 and kode != 2)
= 2: Precision warning. (Half precision or less)
= 3: Precision error. (No precision)
= 4: Overflow re(z) too large on kode = 1.
Reference
SLATEC