Example #1
0
 /// <summary>
 /// Returns the modified Bessel function of the first kind.
 /// <para>BesselI(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 first kind.</returns>
 public static Complex BesselI(double n, Complex z)
 {
     return(Amos.Cbesi(n, z));
 }
Example #2
0
 /// <summary>
 /// Modified Bessel function of the first kind, I(v, z).
 /// <p/>
 /// If expScaled is true, returns Exp(-Abs(x)) * I(v, z) where x = z.Real.
 /// </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 Complex BesselI(double v, Complex z, bool expScaled = false)
 {
     return((expScaled) ? Amos.ScaledCbesi(v, z) : Amos.Cbesi(v, z));
 }