示例#1
0
 /// <summary>
 /// Returns the modified Bessel function of the second kind.
 /// <para>BesselK(n, z) is a solution to the modified Bessel differential equation.</para>
 /// </summary>
 /// <param name="n">The order of the modified Bessel function.</param>
 /// <param name="z">The value to compute the modified Bessel function of.</param>
 /// <returns>The modified Bessel function of the second kind.</returns>
 public static Complex BesselK(double n, Complex z)
 {
     return(Amos.Cbesk(n, z));
 }
示例#2
0
 /// <summary>
 /// Returns the modified Bessel function of the second kind.
 /// <para>BesselK(n, z) is a solution to the modified Bessel differential equation.</para>
 /// </summary>
 /// <param name="n">The order of the modified Bessel function.</param>
 /// <param name="z">The value to compute the modified Bessel function of.</param>
 /// <returns>The modified Bessel function of the second kind.</returns>
 public static double BesselK(double n, double z)
 {
     return(Amos.Cbesk(n, z));
 }
示例#3
0
 /// <summary>
 /// Modified Bessel function of the second kind, K(v, z).
 /// <p/>
 /// If expScaled is true, returns Exp(z) * K(v, z).
 /// </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 BesselK(double v, double z, bool expScaled = false)
 {
     return((expScaled) ? Amos.ScaledCbesk(v, z) : Amos.Cbesk(v, z));
 }