|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.util.SpecialMathFunction
public final class SpecialMathFunction
This class contains physical constants and special functions not found in the java.lang.Math class. Like the java.lang.Math class this class is final and cannot be subclassed. All physical constants are in cgs units.
NOTE: These special functions do not necessarily use the fastest or most accurate algorithms.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
static double |
acosh(double x)
|
static double |
asinh(double xx)
Compute the hyperbolic arc sine |
static double |
atanh(double x)
Compute the hyperbolic arc tangent |
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)
Compute the factorial of the argument |
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)
Get the log base 10 of a number |
static double |
log2(double x)
Get the log base 2 of a number |
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
public static double log10(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
- if (x < 0)public static double log2(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
- if (x < 0)public static double cosh(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double sinh(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double tanh(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double acosh(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double asinh(double xx) throws java.lang.ArithmeticException
xx
- a double value
java.lang.ArithmeticException
public static double atanh(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double j0(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double j1(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double jn(int n, double x) throws java.lang.ArithmeticException
n
- integer orderx
- a double value
java.lang.ArithmeticException
public static double y0(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double y1(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double yn(int n, double x) throws java.lang.ArithmeticException
n
- integer orderx
- a double value
java.lang.ArithmeticException
public static double fac(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static int fac(int j) throws java.lang.ArithmeticException
j
- an integer value
java.lang.ArithmeticException
public static double gamma(double x) throws java.lang.ArithmeticException
x
- a double value
java.lang.ArithmeticException
public static double igamc(double a, double x) throws java.lang.ArithmeticException
a
- double valuex
- double value
java.lang.ArithmeticException
public static double igam(double a, double x) throws java.lang.ArithmeticException
a
- double valuex
- double value
java.lang.ArithmeticException
public static double chisq(double df, double x) throws java.lang.ArithmeticException
df
- degrees of freedomx
- double value
java.lang.ArithmeticException
public static double chisqc(double df, double x) throws java.lang.ArithmeticException
df
- degrees of freedomx
- double value
java.lang.ArithmeticException
public static double poisson(int k, double x) throws java.lang.ArithmeticException
k
- number of termsx
- double value
java.lang.ArithmeticException
public static double poissonc(int k, double x) throws java.lang.ArithmeticException
k
- startx
- double value
java.lang.ArithmeticException
public static double normal(double a) throws java.lang.ArithmeticException
a
- double value
java.lang.ArithmeticException
public static double erfc(double a) throws java.lang.ArithmeticException
a
- double value
java.lang.ArithmeticException
public static double erf(double x) throws java.lang.ArithmeticException
x
- double value
java.lang.ArithmeticException
public static double ibeta(double aa, double bb, double xx) throws java.lang.ArithmeticException
aa
- double valuebb
- double valuexx
- double value
java.lang.ArithmeticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |