airy
Description
airy(x) returns the Airy function of
the first kind, Ai(x),
for each element of x.
airy(0,x) is the same
as airy(x).
airy(1,x) returns
the derivative of Ai(x).
airy(2,x) returns
the Airy function of
the second kind, Bi(x).
airy(3,x) returns
the derivative of Bi(x).
airy(n,x) uses
the values in vector n to return the corresponding
Airy functions of elements of vector x. Both n and x must
have the same size.
airy(___,1) returns the Scaled Airy Functions following the syntax
for the MATLAB® airy function.
Examples
Find the Airy Function of the First Kind
Find the Airy function of the first kind, Ai(x),
for numeric or symbolic inputs using airy. Approximate
exact symbolic outputs using vpa.
Find the Airy function of the first kind, Ai(x),
at 1.5. Because the input is double and not symbolic,
you get a double result.
airy(1.5)
ans =
0.0717
Find the Airy function of the values of vector v symbolically,
by converting v to symbolic form using sym.
Because the input is symbolic, airy returns exact
symbolic results. The exact symbolic results for most symbolic inputs
are unresolved function calls.
v = sym([-1 0 25.1 1+1i]);
vAiry = airy(v)
vAiry =
[ airy(0, -1), 3^(1/3)/(3*gamma(2/3)), airy(0, 251/10), airy(0, 1 + 1i)]
Numerically approximate the exact symbolic result using vpa.
vpa(vAiry)
ans =
[ 0.53556088329235211879951656563887, 0.35502805388781723926006318600418,...