Introduction
This class contains physical constants and special functions not found in the System.Math
class (C# port of the Cephes math library).
Constants
public const double BOLTZMAN = 1.3807e-16;
public const double ECHARGE = 4.8032e-10;
public const double EMASS = 9.1095e-28;
public const double PMASS = 1.6726e-24;
public const double GRAV = 6.6720e-08;
public const double PLANCK = 6.6262e-27;
public const double LIGHTSPEED = 2.9979e10;
public const double STEFANBOLTZ = 5.6703e-5;
public const double AVOGADRO = 6.0220e23;
public const double GASCONSTANT = 8.3144e07;
public const double GRAVACC = 980.67;
public const double SOLARMASS = 1.99e33;
public const double SOLARRADIUS = 6.96e10;
public const double SOLARLUM = 3.90e33;
public const double SOLARFLUX = 6.41e10;
public const double AU = 1.50e13;
Methods
public static double log10(double x);
public static double cosh(double x);
public static double sinh(double x);
public static double tanh(double x);
public static double acosh(double x);
public static double asinh(double xx);
public static double atanh(double x);
public static double j0(double x);
public static double j1(double x);
public static double jn(int n, double x);
public static double y0(double x);
public static double y1(double x);
public static double yn(int n, double x);
public static double fac(double x);
public static int fac(int j);
public static double gamma(double x);
private static double stirf(double x);
public static double igamc(double a, double x);
public static double igam(double a, double x);
public static double chisq(double df, double x);
public static double chisqc(double df, double x);
public static double poisson(int k, double x);
public static double poissonc(int k, double x);
public static double normal(double a);
public static double erfc(double a);
public static double erf(double x);
private static double polevl(double x, double[] coef, int N);
private static double p1evl(double x, double[] coef, int N);
public static double lgamma(double x);
public static double ibeta(double aa, double bb, double xx);
private static double incbcf(double a, double b, double x);
private static double incbd(double a, double b, double x);
private static double pseries(double a, double b, double x);
Outroduction
I hope this will put a smile on someone's face, at least one. :)
History
- 15th September, 2005: Initial post
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.