/// <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)); }
/// <summary> /// Returns the exponentially scaled Hankel function of the second kind. /// <para>ScaledHankelH2(n, z) is given by Exp(z * j) * HankelH2(n, z) where j = Sqrt(-1).</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 exponentially scaled Hankel function of the second kind.</returns> public static Complex HankelH2Scaled(double n, Complex z) { return(Amos.ScaledCbesh2(n, z)); }