/// <summary> /// Returns the Bessel function of the second kind. /// <para>BesselY(n, z) is a solution to the Bessel differential equation.</para> /// </summary> /// <param name="n">The order of the Bessel function.</param> /// <param name="z">The value to compute the Bessel function of.</param> /// <returns>The Bessel function of the second kind.</returns> public static double BesselY(double n, double z) { return(Amos.Cbesy(n, z)); }
/// <summary> /// Returns the Bessel function of the second kind. /// <para>BesselY(n, z) is a solution to the Bessel differential equation.</para> /// </summary> /// <param name="n">The order of the Bessel function.</param> /// <param name="z">The value to compute the Bessel function of.</param> /// <returns>The Bessel function of the second kind.</returns> public static Complex BesselY(double n, Complex z) { return(Amos.Cbesy(n, z)); }
/// <summary> /// Bessel function of the second kind, Y(v, z). /// <p/> /// If expScaled is true, returns Exp(-Abs(y)) * Y(v, z) where y = z.Imaginary. /// </summary> /// <param name="v">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 Bessel function</param> /// <returns></returns> public static double BesselY(double v, double z, bool expScaled = false) { return((expScaled) ? Amos.ScaledCbesy(v, z) : Amos.Cbesy(v, z)); }