naginterfaces.library.specfun.bessel_​i0_​real_​vector

naginterfaces.library.specfun.bessel_i0_real_vector(x)[source]

bessel_i0_real_vector returns an array of values of the modified Bessel function .

For full information please refer to the NAG Library document for s18as

https://www.nag.com/numeric/nl/nagdoc_29.3/flhtml/s/s18asf.html

Parameters
xfloat, array-like, shape

The argument of the function, for .

Returns
ffloat, ndarray, shape

, the function values.

ivalidint, ndarray, shape

contains the error code for , for .

No error.

is too large. contains the approximate value of at the nearest valid argument. The threshold value is the same as for = 1 in bessel_i0_real().

Raises
NagValueError
(errno )

On entry, .

Constraint: .

Warns
NagAlgorithmicWarning
(errno )

On entry, at least one value of was invalid.

Check for more information.

Notes

bessel_i0_real_vector evaluates an approximation to the modified Bessel function of the first kind for an array of arguments , for .

Note: , so the approximation need only consider .

The function is based on three Chebyshev expansions:

For ,

For ,

For ,

For small , . This approximation is used when is sufficiently small for the result to be correct to machine precision.

For large , the function must fail because of the danger of overflow in calculating .

References

NIST Digital Library of Mathematical Functions