W = airy(k,Z) returns
any of four different Airy functions, depending on the value of k,
such as the Airy function of the second kind or the first derivative
of an Airy function.
System variable, specified as a real or complex vector, matrix,
or N-D array.
Data Types: single | double Complex Number Support: Yes
k — Type of Airy function 0 (default) | 1 | 2 | 3
Type of Airy function, specified as one of four values.
k
Returns
0
Airy function,,
which is the same as airy(Z).
1
First derivative of Airy function, .
2
Airy function of the second kind,
3
First derivative of Airy function of the second kind,
Data Types: single | double
scale — Scaling option 0 (default) | 1
Scaling option, specified as 0 or 1.
Use scale = 1 to enable the scaling of Z.
The values you specify for k and scale determine
the scaling function airy applies to Z.
The Airy functions form a pair of linearly
independent solutions to
The relationship between the Airy and modified Bessel functions
is
where
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Always returns a complex
result.
Strict single-precision calculations are not
supported. In the generated code, single-precision
inputs produce single-precision outputs. However,
variables inside the function might be
double-precision.