Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

graph
Class SpecialFunction  view SpecialFunction download SpecialFunction.java

java.lang.Object
  extended bygraph.SpecialFunction

public final class SpecialFunction
extends java.lang.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: 2.4 $, $Date: 2001/05/29 09:36:38 $

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.
private static double LOGPI
           
private static double MACHEP
           
private static double MAXGAM
           
private static double MAXLOG
           
private static double MINLOG
           
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.
private static double SQRTH
           
private static double SQTPI
           
static double STEFANBOLTZ
          Stefan-Boltzman Constant.
 
Constructor Summary
private SpecialFunction()
          Don't let anyone instantiate this class.
 
Method Summary
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)
           
private static double incbcf(double a, double b, double x)
           
private static double incbd(double a, double b, double x)
           
static double j0(double x)
           
static double j1(double x)
           
static double jn(int n, double x)
           
private static double lgamma(double x)
           
static double log10(double x)
           
static double normal(double a)
           
private static double p1evl(double x, double[] coef, int N)
           
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.
private static double polevl(double x, double[] coef, int N)
           
private static double pseries(double a, double b, double x)
           
static double sinh(double x)
           
private static double stirf(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MACHEP

private static final double MACHEP
See Also:
Constant Field Values

MAXLOG

private static final double MAXLOG
See Also:
Constant Field Values

MINLOG

private static final double MINLOG
See Also:
Constant Field Values

MAXGAM

private static final double MAXGAM
See Also:
Constant Field Values

SQTPI

private static final double SQTPI
See Also:
Constant Field Values

SQRTH

private static final double SQRTH
See Also:
Constant Field Values

LOGPI

private static final double LOGPI
See Also:
Constant Field Values

BOLTZMAN

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

See Also:
Constant Field Values

ECHARGE

public static final double ECHARGE
Elementary Charge. Units statcoulomb

See Also:
Constant Field Values

EMASS

public static final double EMASS
Electron Mass. Units g

See Also:
Constant Field Values

PMASS

public static final double PMASS
Proton Mass. Units g

See Also:
Constant Field Values

GRAV

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

See Also:
Constant Field Values

PLANCK

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

See Also:
Constant Field Values

LIGHTSPEED

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

See Also:
Constant Field Values

STEFANBOLTZ

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

See Also:
Constant Field Values

AVOGADRO

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

See Also:
Constant Field Values

GASCONSTANT

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

See Also:
Constant Field Values

GRAVACC

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

See Also:
Constant Field Values

SOLARMASS

public static final double SOLARMASS
Solar Mass. Units g

See Also:
Constant Field Values

SOLARRADIUS

public static final double SOLARRADIUS
Solar Radius. Units cm

See Also:
Constant Field Values

SOLARLUM

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

See Also:
Constant Field Values

SOLARFLUX

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

See Also:
Constant Field Values

AU

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

See Also:
Constant Field Values
Constructor Detail

SpecialFunction

private SpecialFunction()
Don't let anyone instantiate this class.

Method Detail

log10

public static double log10(double x)
                    throws java.lang.ArithmeticException

cosh

public static double cosh(double x)
                   throws java.lang.ArithmeticException

sinh

public static double sinh(double x)
                   throws java.lang.ArithmeticException

tanh

public static double tanh(double x)
                   throws java.lang.ArithmeticException

acosh

public static double acosh(double x)
                    throws java.lang.ArithmeticException

asinh

public static double asinh(double xx)
                    throws java.lang.ArithmeticException

atanh

public static double atanh(double x)
                    throws java.lang.ArithmeticException

j0

public static double j0(double x)
                 throws java.lang.ArithmeticException

j1

public static double j1(double x)
                 throws java.lang.ArithmeticException

jn

public static double jn(int n,
                        double x)
                 throws java.lang.ArithmeticException

y0

public static double y0(double x)
                 throws java.lang.ArithmeticException

y1

public static double y1(double x)
                 throws java.lang.ArithmeticException

yn

public static double yn(int n,
                        double x)
                 throws java.lang.ArithmeticException

fac

public static double fac(double x)
                  throws java.lang.ArithmeticException

fac

public static int fac(int j)
               throws java.lang.ArithmeticException

gamma

public static double gamma(double x)
                    throws java.lang.ArithmeticException

stirf

private static double stirf(double x)
                     throws java.lang.ArithmeticException

igamc

public static double igamc(double a,
                           double x)
                    throws java.lang.ArithmeticException

igam

public static double igam(double a,
                          double x)
                   throws java.lang.ArithmeticException

chisq

public static double chisq(double df,
                           double x)
                    throws java.lang.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.


chisqc

public static double chisqc(double df,
                            double x)
                     throws java.lang.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:


poisson

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


poissonc

public static double poissonc(int k,
                              double x)
                       throws java.lang.ArithmeticException
Returns the sum of the terms k+1 to infinity of the Poisson distribution.


normal

public static double normal(double a)
                     throws java.lang.ArithmeticException

erfc

public static double erfc(double a)
                   throws java.lang.ArithmeticException

erf

public static double erf(double x)
                  throws java.lang.ArithmeticException

polevl

private static double polevl(double x,
                             double[] coef,
                             int N)
                      throws java.lang.ArithmeticException

p1evl

private static double p1evl(double x,
                            double[] coef,
                            int N)
                     throws java.lang.ArithmeticException

lgamma

private static double lgamma(double x)
                      throws java.lang.ArithmeticException

ibeta

public static double ibeta(double aa,
                           double bb,
                           double xx)
                    throws java.lang.ArithmeticException

incbcf

private static double incbcf(double a,
                             double b,
                             double x)
                      throws java.lang.ArithmeticException

incbd

private static double incbd(double a,
                            double b,
                            double x)
                     throws java.lang.ArithmeticException

pseries

private static double pseries(double a,
                              double b,
                              double x)
                       throws java.lang.ArithmeticException