/// <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)); }
/// <summary> /// Returns the exponentially scaled Hankel function of the first kind. /// <para>ScaledHankelH1(n, z) is given by Exp(-z * j) * HankelH1(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 first kind.</returns> public static Complex HankelH1Scaled(double n, Complex z) { return(Amos.ScaledCbesh1(n, z)); }