Class VisualNumerics.math.Sfun
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class VisualNumerics.math.Sfun

java.lang.Object
   |
   +----VisualNumerics.math.Sfun

public class Sfun
extends Object
The special function library. The Sfun class complements the class Math by providing more advanced functions. This class cannot be instantiated because all of its methods and variables are static.

Variable Index

 o EPSILON_LARGE
The largest relative spacing for doubles.
 o EPSILON_SMALL
The smallest relative spacing for doubles.
 o Euler
Euler's Constant.

Method Index

 o acosh(double)
Returns the inverse (arc) hyperbolic cosine.
 o asinh(double)
Returns the inverse (arc) hyperbolic sine.
 o atanh(double)
Returns the inverse (arc) hyperbolic tangent.
 o cosh(double)
Returns the hyperbolic cosine.
 o cot(double)
Returns the cotangent.
 o erf(double)
Returns the error function.
 o erfc(double)
Returns the complementary error function.
 o gamma(double)
Returns the gamma function.
 o log10(double)
Returns the base 10 logarithm.
 o logGamma(double)
Returns the logarithm gamma function.
 o nearestInteger(double)
Returns the nearest integer.
 o sign(double, double)
Returns the value of x with the sign of y.
 o sinh(double)
Returns the hyperbolic sine.
 o tanh(double)
Returns the hyperbolic tangent.

Variables

 o EPSILON_SMALL
  public final static double EPSILON_SMALL
The smallest relative spacing for doubles. EPSILON_SMALL = 1.11022302462515e-16
 o EPSILON_LARGE
  public final static double EPSILON_LARGE
The largest relative spacing for doubles. EPSILON_LARGE = 2.2204460492503e-16
 o Euler
  public final static double Euler
Euler's Constant. Euler = 0.57721566490153286

Constructors

 o Sfun
  public Sfun()

Methods

 o sign
  public static double sign(double x,
                            double y)
Returns the value of x with the sign of y.
Parameters:
x - Input double scalar to which the sign of y is to be applied.
y - Input double scalar whose sign is to be applied to x.
Returns:
A scalar of type double which has the magnitude of x and the sign of y.
 o nearestInteger
  public static int nearestInteger(double x)
Returns the nearest integer.
Parameters:
x - Input double scalar for which the nearest int is desired.
Returns:
A scalar of type int containing the nearest integer to input x.
 o log10
  public static double log10(double x)
Returns the base 10 logarithm.
Parameters:
x - Input double scalar for which the base 10 logarithm is desired.
Returns:
Scalar of type double containing the base 10 logarithm of input x.
 o cot
  public static double cot(double x)
Returns the cotangent.
Parameters:
x - Input double scalar for which the cotangent is desired.
Returns:
Scalar of type double containing the cotangent of input x.
 o sinh
  public static double sinh(double x)
Returns the hyperbolic sine.
Parameters:
x - Input double scalar for which the hyperbolic sine is desired.
Returns:
Scalar of type double containing the hyperbolic sine of input x.
 o cosh
  public static double cosh(double x)
Returns the hyperbolic cosine.
Parameters:
x - Input double scalar for which the hyperbolic cosine is desired.
Returns:
Scalar of type double containing the hyperbolic cosine of input x.
 o tanh
  public static double tanh(double x)
Returns the hyperbolic tangent.
Parameters:
x - Input double scalar for which the hyperbolic tangent is desired.
Returns:
Scalar of type double containing the hyperbolic tangent of input x.
 o asinh
  public static double asinh(double x)
Returns the inverse (arc) hyperbolic sine.
Parameters:
x - Input double scalar for which the inverse hyperbolic sine is desired.
Returns:
Scalar of type double containing the inverse (arc) hyperbolic sine of input x.
 o acosh
  public static double acosh(double x)
Returns the inverse (arc) hyperbolic cosine.
Parameters:
x - Input double scalar for which the inverse hyperbolic cosine is desired.
Returns:
Scalar of type double containing the inverse (arc) hyperbolic cosine of input x.
 o atanh
  public static double atanh(double x)
Returns the inverse (arc) hyperbolic tangent.
Parameters:
x - Input double scalar for which the inverse hyperbolic tangent is desired.
Returns:
Scalar of type double containing the inverse (arc) hyperbolic tangent of input x.
 o gamma
  public static double gamma(double x)
Returns the gamma function.
Parameters:
x - Input scalar of type double for which the complete gamma function is desired.
Returns:
Scalar of type double containing the complete gamma of input x.
 o logGamma
  public static double logGamma(double x)
Returns the logarithm gamma function.
Parameters:
x - Input scalar of type double for which the logarithm of the absolute value of the gamma function is desired.
Returns:
Scalar of type double containing the logarithm of the absolute value of the gamma of input x.
 o erf
  public static double erf(double x)
Returns the error function.
Parameters:
x - Input scalar of type double for which the error function is desired.
Returns:
Scalar of type double containing the error function of input x.
 o erfc
  public static double erfc(double x)
Returns the complementary error function.
Parameters:
x - Input scalar of type double for which the complementary error function is desired.
Returns:
Scalar of type double containing the complementary error function of input x.

All Packages  Class Hierarchy  This Package  Previous  Next  Index