Navigation

Operators and Keywords

Function List:

C++ API

: [a, ierr] = airy (k, z, opt)

Compute Airy functions of the first and second kind, and their derivatives.

K   Function   Scale factor (if "opt" is supplied)
---  --------   ---------------------------------------
0   Ai (Z)     exp ((2/3) * Z * sqrt (Z))
1   dAi(Z)/dZ  exp ((2/3) * Z * sqrt (Z))
2   Bi (Z)     exp (-abs (real ((2/3) * Z * sqrt (Z))))
3   dBi(Z)/dZ  exp (-abs (real ((2/3) * Z * sqrt (Z))))

The function call airy (z) is equivalent to airy (0, z).

The result is the same size as z.

If requested, ierr contains the following status information and is the same size as the result.

  1. Normal return.
  2. Input error, return NaN.
  3. Overflow, return Inf.
  4. Loss of significance by argument reduction results in less than half of machine accuracy.
  5. Complete loss of significance by argument reduction, return NaN.
  6. Error—no computation, algorithm termination condition not met, return NaN.

Package: octave