    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class JSci.maths.ExtraMath

    java.lang.Object
       |
       +----JSci.maths.AbstractMath
               |
               +----JSci.maths.ExtraMath

public final class ExtraMath
extends AbstractMath

The extra math library. Provides extra functions not in java.lang.Math class. This class cannot be subclassed or instantiated because all methods are static.

##

acosh(double)
  Returns the arc hyperbolic cosine of a double, in the range of 0.0 through infinity.
asinh(double)
  Returns the arc hyperbolic sine of a double, in the range of -infinity through infinity.
atanh(double)
  Returns the arc hyperbolic tangent of a double, in the range of -infinity through infinity.
binomial(double, double)
  Returns the binomial coefficient (n k).
cosh(double)
  Returns the hyperbolic cosine of a double.
factorial(double)
  Returns the factorial.
logFactorial(double)
  Returns the natural logarithm of the factorial.
sinh(double)
  Returns the hyperbolic sine of a double.
tanh(double)
  Returns the hyperbolic tangent of a double.

##

factorial

     public static double factorial(double x)

  Returns the factorial. (Wrapper for the gamma function).

  Parameters:
    x - a double
  See Also:
    gamma

logFactorial

     public static double logFactorial(double x)

  Returns the natural logarithm of the factorial. (Wrapper for the log gamma function).

  Parameters:
    x - a double
  See Also:
    logGamma

binomial

     public static double binomial(double n,
                                   double k)

  Returns the binomial coefficient (n k).

  Parameters:
    n - a double
    k - a double

sinh

     public static double sinh(double x)

  Returns the hyperbolic sine of a double.

  Parameters:
    x - a double

cosh

     public static double cosh(double x)

  Returns the hyperbolic cosine of a double.

  Parameters:
    x - a double

tanh

     public static double tanh(double x)

  Returns the hyperbolic tangent of a double.

  Parameters:
    x - a double

asinh

     public static double asinh(double x)

  Returns the arc hyperbolic sine of a double, in the range of -infinity through infinity.

  Parameters:
    x - a double

acosh

     public static double acosh(double x)

  Returns the arc hyperbolic cosine of a double, in the range of 0.0 through infinity.

  Parameters:
    x - a double

atanh

     public static double atanh(double x)

  Returns the arc hyperbolic tangent of a double, in the range of -infinity through infinity.

  Parameters:
    x - a double

    All Packages  Class Hierarchy  This Package  Previous  Next  Index