Airy and Bairy functions
In the next section, we will see Airy and Bairy functions.
Getting ready...
These are solutions of the Stokes equation and are obtained by solving the following differential equation:

How to do it...
Airy and Bairy functions are used as follows:
- This equation has two linearly independent solutions, both of them defined as an improper integral for real values of the independent variable.
- The
airy
command computes both functions (Ai
andBi
) as well as their corresponding derivatives (Aip
andBip
, respectively). - In the following code, we take advantage of the
contourf
command inmatplotlib.pyplot
to present an image of the real part of the output of the Bairy functionBi
for an array of 801 x 801 complex values uniformly spaced in the square from -4 - 4j to 4 + 4j. - We also offer this graph as a surface plot using the
mplot3d
module ofmpl_toolkits
as follows:
import numpy import scipy.special import matplotlib.pyplot as plt import mpl_toolkits.mplot3d x=numpy.mgrid[-4:4:100j...