airy_ai_real_vector returns an array of values for the Airy function, .

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

xfloat, array-like, shape

The argument of the function, for .

ffloat, ndarray, shape

, the function values.

ivalidint, ndarray, shape

contains the error code for , for .

No error.

is too large and positive. contains zero. The threshold value is the same as for = 1 in airy_ai_real().

is too large and negative. contains zero. The threshold value is the same as for = 2 in airy_ai_real().

(errno )

On entry, .

Constraint: .

(errno )

On entry, at least one value of was invalid.

Check for more information.


airy_ai_real_vector evaluates an approximation to the Airy function, for an array of arguments , for . It is based on a number of Chebyshev expansions:

For ,

where , and and are expansions in the variable .

For ,

where and are expansions in

For ,

where is an expansion in .

For ,

where is an expansion in .

For ,

where and is an expansion in .

For , the result is set directly to . This both saves time and guards against underflow in intermediate calculations.

For large negative arguments, it becomes impossible to calculate the phase of the oscillatory function with any precision and so the function must fail. This occurs if , where is the machine precision.

For large positive arguments, where decays in an essentially exponential manner, there is a danger of underflow so the function must fail.


NIST Digital Library of Mathematical Functions