示例#1
0
 /// <summary>
 /// Returns the Bessel function of the first kind.
 /// <para>BesselJ(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 first kind.</returns>
 public static Complex BesselJ(double n, Complex z)
 {
     return(Amos.Cbesj(n, z));
 }
示例#2
0
 /// <summary>
 /// Returns the Bessel function of the first kind.
 /// <para>BesselJ(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 first kind.</returns>
 public static double BesselJ(double n, double z)
 {
     return(Amos.Cbesj(n, z));
 }
示例#3
0
 /// <summary>
 /// Bessel function of the first kind, J(v, z).
 /// <p/>
 /// If expScaled is true, returns Exp(-Abs(y)) * J(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 BesselJ(double v, double z, bool expScaled = false)
 {
     return((expScaled) ? Amos.ScaledCbesj(v, z) : Amos.Cbesj(v, z));
 }