public final class SpecialFunction extends Object
NOTE: These special functions do not necessarily use the fastest or most accurate algorithms.
Modifier and Type | Field and Description |
---|---|
static double |
AU
Astronomical Unit (radius of the Earth's orbit).
|
static double |
AVOGADRO
Avogadro Number.
|
static double |
BOLTZMAN
Boltzman Constant.
|
static double |
ECHARGE
Elementary Charge.
|
static double |
EMASS
Electron Mass.
|
static double |
GASCONSTANT
Gas Constant.
|
static double |
GRAV
Gravitational Constant.
|
static double |
GRAVACC
Gravitational Acceleration at the Earths surface.
|
static double |
LIGHTSPEED
Speed of Light in a Vacuum.
|
static double |
PLANCK
Planck constant.
|
static double |
PMASS
Proton Mass.
|
static double |
SOLARFLUX
Solar Flux.
|
static double |
SOLARLUM
Solar Luminosity.
|
static double |
SOLARMASS
Solar Mass.
|
static double |
SOLARRADIUS
Solar Radius.
|
static double |
STEFANBOLTZ
Stefan-Boltzman Constant.
|
Modifier and Type | Method and Description |
---|---|
static double |
acosh(double x) |
static double |
asinh(double xx) |
static double |
atanh(double x) |
static double |
chisq(double df,
double x)
Returns the area under the left hand tail (from 0 to x)
of the Chi square probability density function with
v degrees of freedom.
|
static double |
chisqc(double df,
double x)
Returns the area under the right hand tail (from x to
infinity) of the Chi square probability density function
with v degrees of freedom:
|
static double |
cosh(double x) |
static double |
erf(double x) |
static double |
erfc(double a) |
static double |
fac(double x) |
static int |
fac(int j) |
static double |
gamma(double x) |
static double |
ibeta(double aa,
double bb,
double xx) |
static double |
igam(double a,
double x) |
static double |
igamc(double a,
double x) |
static double |
j0(double x) |
static double |
j1(double x) |
static double |
jn(int n,
double x) |
static double |
log10(double x) |
static double |
normal(double a) |
static double |
poisson(int k,
double x)
Returns the sum of the first k terms of the Poisson
distribution.
|
static double |
poissonc(int k,
double x)
Returns the sum of the terms k+1 to infinity of the Poisson
distribution.
|
static double |
sinh(double x) |
static double |
tanh(double x) |
static double |
y0(double x) |
static double |
y1(double x) |
static double |
yn(int n,
double x) |
public static final double BOLTZMAN
public static final double ECHARGE
public static final double EMASS
public static final double PMASS
public static final double GRAV
public static final double PLANCK
public static final double LIGHTSPEED
public static final double STEFANBOLTZ
public static final double AVOGADRO
public static final double GASCONSTANT
public static final double GRAVACC
public static final double SOLARMASS
public static final double SOLARRADIUS
public static final double SOLARLUM
public static final double SOLARFLUX
public static final double AU
public static double log10(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double cosh(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double sinh(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double tanh(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double acosh(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double asinh(double xx) throws ArithmeticException
x
- a double valueArithmeticException
public static double atanh(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double j0(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double j1(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double jn(int n, double x) throws ArithmeticException
n
- integer orderx
- a double valueArithmeticException
public static double y0(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double y1(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static double yn(int n, double x) throws ArithmeticException
n
- integer orderx
- a double valueArithmeticException
public static double fac(double x) throws ArithmeticException
x
- a double valueArithmeticException
public static int fac(int j) throws ArithmeticException
x
- an integer valueArithmeticException
public static double gamma(double x) throws ArithmeticException
x
- a double value
Converted to Java from
Cephes Math Library Release 2.2: July, 1992
Copyright 1984, 1987, 1989, 1992 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
ArithmeticException
public static double igamc(double a, double x) throws ArithmeticException
a
- double valuex
- double value
Converted to Java from
Cephes Math Library Release 2.2: July, 1992
Copyright 1984, 1987, 1989, 1992 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
ArithmeticException
public static double igam(double a, double x) throws ArithmeticException
a
- double valuex
- double value
Converted to Java from
Cephes Math Library Release 2.2: July, 1992
Copyright 1984, 1987, 1989, 1992 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
ArithmeticException
public static double chisq(double df, double x) throws ArithmeticException
df
- degrees of freedomx
- double valueArithmeticException
public static double chisqc(double df, double x) throws ArithmeticException
df
- degrees of freedomx
- double valueArithmeticException
public static double poisson(int k, double x) throws ArithmeticException
k
- number of termsx
- double valueArithmeticException
public static double poissonc(int k, double x) throws ArithmeticException
k
- startx
- double valueArithmeticException
public static double normal(double a) throws ArithmeticException
a
- double valueArithmeticException
public static double erfc(double a) throws ArithmeticException
a
- double value
Converted to Java from
Cephes Math Library Release 2.2: July, 1992
Copyright 1984, 1987, 1989, 1992 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
ArithmeticException
public static double erf(double x) throws ArithmeticException
a
- double value
Converted to Java from
Cephes Math Library Release 2.2: July, 1992
Copyright 1984, 1987, 1989, 1992 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
ArithmeticException
public static double ibeta(double aa, double bb, double xx) throws ArithmeticException
aa
- double valuebb
- double valuexx
- double value
Converted to Java from
Cephes Math Library Release 2.3: July, 1995
Copyright 1984, 1995 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
ArithmeticException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics