airyBi

Evaluates the Airy function of the second kind.

Synopsis

airyBi (x)

Required Arguments

float x (Input)
Argument for which the function value is desired.

Return Value

The Airy function of the second kind evaluated at x, Bi(x).

Description

The airy function Bi(x) is defined to be

Bi(x)=1π0exp(xt13t3)dt+1π0sin(xt+13t3)dt

It can also be expressed in terms of modified Bessel functions of the first kind, Iv(x), and Bessel functions of the first kind Jv(x) (see besselIx and besselJx):

Bi(x)=x3[I1/3(23x3/2)+I1/3(23x3/2)] for x>0

and

Bi(x)=x3[J1/3(23|x|3/2)J1/3(23|x|3/2)] for x<0

Let ɛ = machine(4), the machine precision. If x<1.31ε2/3, then the answer will have no precision.

If x<131ε1/3, the answer will be less accurate than half precision. In addition, x should not be so large that exp[(2/3)x3/2] overflows. For more information, see the description for machine.

Example

In this example, Bi(4.9) is evaluated.

from __future__ import print_function
from numpy import *
from pyimsl.math.airyBi import airyBi

x = -4.9
ans = airyBi(x)
print("Bi(-4.9) = %f" % (ans))

Output

Bi(-4.9) = -0.057747