All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class graph.SpecialFunction

java.lang.Object
   |
   +----graph.SpecialFunction

public final class SpecialFunction
extends Object
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.

Version:
$Revision: 1.1.1.1 $, $Date: 1999/11/15 20:37:49 $.
Author:
Leigh Brookshaw Author's original version: Revision: 1.7, Date: 1996/08/19 06:04:15

Variable Index

 o AU
Astronomical Unit (radius of the Earth's orbit).
 o AVOGADRO
Avogadro Number.
 o BOLTZMAN
Boltzman Constant.
 o ECHARGE
Elementary Charge.
 o EMASS
Electron Mass.
 o GASCONSTANT
Gas Constant.
 o GRAV
Gravitational Constant.
 o GRAVACC
Gravitational Acceleration at the Earths surface.
 o LIGHTSPEED
Speed of Light in a Vacuum.
 o PLANCK
Planck constant.
 o PMASS
Proton Mass.
 o SOLARFLUX
Solar Flux.
 o SOLARLUM
Solar Luminosity.
 o SOLARMASS
Solar Mass.
 o SOLARRADIUS
Solar Radius.
 o STEFANBOLTZ
Stefan-Boltzman Constant.

Method Index

 o acosh(double)
 o asinh(double)
 o atanh(double)
 o chisq(double, double)
Returns the area under the left hand tail (from 0 to x) of the Chi square probability density function with v degrees of freedom.
 o chisqc(double, double)
Returns the area under the right hand tail (from x to infinity) of the Chi square probability density function with v degrees of freedom:
 o cosh(double)
 o erf(double)
 o erfc(double)
 o fac(double)
 o fac(int)
 o gamma(double)
 o ibeta(double, double, double)
 o igam(double, double)
 o igamc(double, double)
 o j0(double)
 o j1(double)
 o jn(int, double)
 o log10(double)
 o normal(double)
 o poisson(int, double)
Returns the sum of the first k terms of the Poisson distribution.
 o poissonc(int, double)
Returns the sum of the terms k+1 to infinity of the Poisson distribution.
 o sinh(double)
 o tanh(double)
 o y0(double)
 o y1(double)
 o yn(int, double)

Variables

 o BOLTZMAN
 public static final double BOLTZMAN
Boltzman Constant. Units erg/deg(K)

 o ECHARGE
 public static final double ECHARGE
Elementary Charge. Units statcoulomb

 o EMASS
 public static final double EMASS
Electron Mass. Units g

 o PMASS
 public static final double PMASS
Proton Mass. Units g

 o GRAV
 public static final double GRAV
Gravitational Constant. Units dyne-cm^2/g^2

 o PLANCK
 public static final double PLANCK
Planck constant. Units erg-sec

 o LIGHTSPEED
 public static final double LIGHTSPEED
Speed of Light in a Vacuum. Units cm/sec

 o STEFANBOLTZ
 public static final double STEFANBOLTZ
Stefan-Boltzman Constant. Units erg/cm^2-sec-deg^4

 o AVOGADRO
 public static final double AVOGADRO
Avogadro Number. Units 1/mol

 o GASCONSTANT
 public static final double GASCONSTANT
Gas Constant. Units erg/deg-mol

 o GRAVACC
 public static final double GRAVACC
Gravitational Acceleration at the Earths surface. Units cm/sec^2

 o SOLARMASS
 public static final double SOLARMASS
Solar Mass. Units g

 o SOLARRADIUS
 public static final double SOLARRADIUS
Solar Radius. Units cm

 o SOLARLUM
 public static final double SOLARLUM
Solar Luminosity. Units erg/sec

 o SOLARFLUX
 public static final double SOLARFLUX
Solar Flux. Units erg/cm^2-sec

 o AU
 public static final double AU
Astronomical Unit (radius of the Earth's orbit). Units cm

Methods

 o log10
 public static double log10(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
The log10
 o cosh
 public static double cosh(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the hyperbolic cosine of the argument
 o sinh
 public static double sinh(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the hyperbolic sine of the argument
 o tanh
 public static double tanh(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the hyperbolic tangent of the argument
 o acosh
 public static double acosh(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the hyperbolic arc cosine of the argument
 o asinh
 public static double asinh(double xx) throws ArithmeticException
Parameters:
x - a double value
Returns:
the hyperbolic arc sine of the argument
 o atanh
 public static double atanh(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the hyperbolic arc tangent of the argument
 o j0
 public static double j0(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the Bessel function of order 0 of the argument.
 o j1
 public static double j1(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the Bessel function of order 1 of the argument.
 o jn
 public static double jn(int n,
                         double x) throws ArithmeticException
Parameters:
n - integer order
x - a double value
Returns:
the Bessel function of order n of the argument.
 o y0
 public static double y0(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the Bessel function of the second kind, of order 0 of the argument.
 o y1
 public static double y1(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the Bessel function of the second kind, of order 1 of the argument.
 o yn
 public static double yn(int n,
                         double x) throws ArithmeticException
Parameters:
n - integer order
x - a double value
Returns:
the Bessel function of the second kind, of order n of the argument.
 o fac
 public static double fac(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the factorial of the argument
 o fac
 public static int fac(int j) throws ArithmeticException
Parameters:
x - an integer value
Returns:
the factorial of the argument
 o gamma
 public static double gamma(double x) throws ArithmeticException
Parameters:
x - a double value
Returns:
the Gamma function of the 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

 o igamc
 public static double igamc(double a,
                            double x) throws ArithmeticException
Parameters:
a - double value
x - double value
Returns:
the Complemented Incomplete Gamma function.

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

 o igam
 public static double igam(double a,
                           double x) throws ArithmeticException
Parameters:
a - double value
x - double value
Returns:
the Incomplete Gamma function.

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

 o chisq
 public static double chisq(double df,
                            double x) throws ArithmeticException
Returns the area under the left hand tail (from 0 to x) of the Chi square probability density function with v degrees of freedom.

Parameters:
df - degrees of freedom
x - double value
Returns:
the Chi-Square function.
 o chisqc
 public static double chisqc(double df,
                             double x) throws ArithmeticException
Returns the area under the right hand tail (from x to infinity) of the Chi square probability density function with v degrees of freedom:

Parameters:
df - degrees of freedom
x - double value
Returns:
the Chi-Square function.

 o poisson
 public static double poisson(int k,
                              double x) throws ArithmeticException
Returns the sum of the first k terms of the Poisson distribution.

Parameters:
k - number of terms
x - double value
 o poissonc
 public static double poissonc(int k,
                               double x) throws ArithmeticException
Returns the sum of the terms k+1 to infinity of the Poisson distribution.

Parameters:
k - start
x - double value
 o normal
 public static double normal(double a) throws ArithmeticException
Parameters:
a - double value
Returns:
The area under the Gaussian probability density function, integrated from minus infinity to x:
 o erfc
 public static double erfc(double a) throws ArithmeticException
Parameters:
a - double value
Returns:
The complementary Error function

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

 o erf
 public static double erf(double x) throws ArithmeticException
Parameters:
a - double value
Returns:
The Error function

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

 o ibeta
 public static double ibeta(double aa,
                            double bb,
                            double xx) throws ArithmeticException
Parameters:
aa - double value
bb - double value
xx - double value
Returns:
The Incomplete Beta Function evaluated from zero to xx.

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index