コード例 #1
0
 /// <summary>
 /// Returns the exponentially scaled modified Bessel function of the second kind.
 /// <para>ScaledBesselK(n, z) is given by Exp(z) * BesselK(n, z).</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 exponentially scaled modified Bessel function of the second kind.</returns>
 public static Complex BesselKScaled(double n, Complex z)
 {
     return(Amos.ScaledCbesk(n, z));
 }
コード例 #2
0
 /// <summary>
 /// Returns the exponentially scaled modified Bessel function of the second kind.
 /// <para>ScaledBesselK(n, z) is given by Exp(z) * BesselK(n, z).</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 exponentially scaled modified Bessel function of the second kind.</returns>
 public static double BesselKScaled(double n, double z)
 {
     return(Amos.ScaledCbesk(n, z));
 }
コード例 #3
0
ファイル: Bessel.cs プロジェクト: liuzhga/mathnet-numerics
 /// <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));
 }