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

◆ cbesi()

void cbesi ( doublecomplex  z,
double  nu,
int  kode,
int  n,
doublecomplex  y[],
int *  info 
)

Sequence of the modified Bessel functions of the first kind Iν(z) (fractional order) (complex argument)

Purpose
cbesi computes the sequence of the modified Bessel functions of the first kind Iν(z) for complex argument z and real nonnegative orders ν, ν+1, ...
A scaling option is available to help avoid overflow.
Parameters
[in]zArgument z.
[in]nuOrder of first member of the sequence. (nu >= 0)
[in]kodeA parameter to indicate the scaling option.
= 1: No scaling.
= 2: Returns exponentially scaled values.
[in]nNumber of members in the sequence. (n members of orders nu to nu+n-1 to be computed) (n >= 1)
[out]y[]Array y[ly] (ly >= n)
Sequence of the modified Bessel functions of the first kind.
kode = 1: Iν(z) (ν = nu to nu+n-1)
kode = 2: exp(-abs(re(z)))*Iν(z) (ν = nu to nu+n-1)
[out]info= 0: Successful exit.
= -2: The argument nu had an illegal value. (nu < 0)
= -3: The argument kode had an illegal value. (kode != 1 and kode != 2)
= -4: The argument n had an illegal value. (n < 1)
= nz (0 < nz <= n): The last nz components of y[] set to zero due to underflow.
= n+1: Precision warning. (Half precision or less because abs(z) or nu+n-1 is large)
= n+2: Precision error. (No precision because abs(z) or nu+n-1 is too large)
= n+3: Overflow re(z) too large on kode = 1.
= n+4: Algorithmic error. (Termination condition not met)
Reference
SLATEC