|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.AbstractMath JSci.maths.SpecialMath
public final class SpecialMath
The special function math library. This class cannot be subclassed or instantiated because all methods are static.
Field Summary | |
---|---|
static double |
GAMMA_X_MAX_VALUE
The largest argument for which gamma(x) is representable in the machine. |
static double |
LOG_GAMMA_X_MAX_VALUE
The largest argument for which logGamma(x) is representable in the machine. |
Fields inherited from interface JSci.maths.NumericalConstants |
---|
GAMMA, GOLDEN_RATIO, LOG10, SQRT2, SQRT2PI, TWO_PI |
Method Summary | |
---|---|
static double |
airy(double x)
Airy function. |
static double |
besselFirstOne(double x)
Bessel function of first kind, order one. |
static double |
besselFirstZero(double x)
Bessel function of first kind, order zero. |
static double |
besselSecondOne(double x)
Bessel function of second kind, order one. |
static double |
besselSecondZero(double x)
Bessel function of second kind, order zero. |
static double |
beta(double p,
double q)
Beta function. |
static double |
chebyshev(double x,
double[] series)
Evaluates a Chebyshev series. |
static double |
complementaryError(double x)
Complementary error function. |
static double |
error(double x)
Error function. |
static double |
gamma(double x)
Gamma function. |
static double |
incompleteBeta(double x,
double p,
double q)
Incomplete beta function. |
static double |
incompleteGamma(double a,
double x)
Incomplete gamma function. |
static double |
logBeta(double p,
double q)
The natural logarithm of the beta function. |
static double |
logGamma(double x)
The natural logarithm of the gamma function. |
static double |
modBesselFirstOne(double x)
Modified Bessel function of first kind, order one. |
static double |
modBesselFirstZero(double x)
Modified Bessel function of first kind, order zero. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double GAMMA_X_MAX_VALUE
gamma(x)
is representable in the machine.
public static final double LOG_GAMMA_X_MAX_VALUE
logGamma(x)
is representable in the machine.
Method Detail |
---|
public static double chebyshev(double x, double[] series)
x
- value at which to evaluate seriesseries
- the coefficients of the seriespublic static double airy(double x)
public static double besselFirstZero(double x)
public static double modBesselFirstZero(double x)
public static double besselFirstOne(double x)
public static double modBesselFirstOne(double x)
public static double besselSecondZero(double x)
public static double besselSecondOne(double x)
public static double gamma(double x)
References:
From the original documentation:
This routine calculates the GAMMA function for a real argument X. Computation is based on an algorithm outlined in reference 1. The program uses rational functions that approximate the GAMMA function to at least 20 significant decimal digits. Coefficients for the approximation over the interval (1,2) are unpublished. Those for the approximation for X .GE. 12 are from reference 2. The accuracy achieved depends on the arithmetic system, the compiler, the intrinsic functions, and proper selection of the machine-dependent constants.
Error returns:
The program returns the value XINF for singularities or when overflow would occur.
The computation is believed to be free of underflow and overflow.
public static double logGamma(double x)
References:
From the original documentation:
This routine calculates the LOG(GAMMA) function for a positive real argument X. Computation is based on an algorithm outlined in references 1 and 2. The program uses rational functions that theoretically approximate LOG(GAMMA) to at least 18 significant decimal digits. The approximation for X > 12 is from reference 3, while approximations for X < 12.0 are similar to those in reference 1, but are unpublished. The accuracy achieved depends on the arithmetic system, the compiler, the intrinsic functions, and proper selection of the machine-dependent constants.
Error returns:
The program returns the value XINF for X .LE. 0.0 or when overflow would occur.
The computation is believed to be free of underflow and overflow.
public static double incompleteGamma(double a, double x)
a
- require a>=0x
- require x>=0
public static double beta(double p, double q)
p
- require p>0q
- require q>0
public static double logBeta(double p, double q)
p
- require p>0q
- require q>0
public static double incompleteBeta(double x, double p, double q)
x
- require 0<=x<=1p
- require p>0q
- require q>0
public static double error(double x)
public static double complementaryError(double x)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |