Example #1
0
 /// <summary>
 /// Returns the Airy function Ai.
 /// <para>AiryAi(z) is a solution to the Airy equation, y'' - y * z = 0.</para>
 /// </summary>
 /// <param name="z">The value to compute the Airy function of.</param>
 /// <returns>The Airy function Ai.</returns>
 public static Complex AiryAi(Complex z)
 {
     return(Amos.Cairy(z));
 }
Example #2
0
 /// <summary>
 /// Airy function Ai(z).
 /// <p/>
 /// If expScaled is true, returns Exp(zta) * Ai(z), where zta = (2/3) * z * Sqrt(z).
 /// </summary>
 /// <param name="z">The value to compute the Airy function of.</param>
 /// <param name="expScaled">If true, returns exponentially-scaled Airy function</param>
 /// <returns></returns>
 public static Complex AiryAi(Complex z, bool expScaled = false)
 {
     return((expScaled) ? Amos.ScaledCairy(z) : Amos.Cairy(z));
 }