Example #1
0
 /// <summary>
 /// Hankel function of the first kind, H1(n, z).
 /// <p/>
 /// If expScaled is true, returns Exp(-z * j) * H1(n, z) where j = Sqrt(-1).
 /// </summary>
 /// <param name="n">The order of the Bessel function</param>
 /// <param name="z">The value to compute the Bessel function of.</param>
 /// <param name="expScaled">If true, returns exponentially-scaled Hankel function</param>
 /// <returns></returns>
 public static Complex HankelH1(double n, Complex z, bool expScaled = false)
 {
     return((expScaled) ? Amos.ScaledCbesh1(n, z) : Amos.Cbesh1(n, z));
 }
Example #2
0
 /// <summary>
 /// Returns the Hankel function of the first kind.
 /// <para>HankelH1(n, z) is defined as BesselJ(n, z) + j * BesselY(n, z).</para>
 /// </summary>
 /// <param name="n">The order of the Hankel function.</param>
 /// <param name="z">The value to compute the Hankel function of.</param>
 /// <returns>The Hankel function of the first kind.</returns>
 public static Complex HankelH1(double n, Complex z)
 {
     return(Amos.Cbesh1(n, z));
 }