示例#1
0
 /// <summary>
 /// Hankel function of the second kind, H2(n, z).
 /// <p/>
 /// If expScaled is true, returns Exp(z * j) * H2(n, z) where j = Sqrt(-1).
 /// </summary>
 /// <param name="n">The order of the Hankel 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 HankelH2(double n, Complex z, bool expScaled = false)
 {
     return((expScaled) ? Amos.ScaledCbesh2(n, z) : Amos.Cbesh2(n, z));
 }
示例#2
0
 /// <summary>
 /// Returns the Hankel function of the second kind.
 /// <para>HankelH2(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 second kind.</returns>
 public static Complex HankelH2(double n, Complex z)
 {
     return(Amos.Cbesh2(n, z));
 }