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.
-
EPSILON_LARGE
-
The largest relative spacing for doubles.
-
EPSILON_SMALL
-
The smallest relative spacing for doubles.
-
Euler
-
Euler's Constant.
-
acosh(double)
-
Returns the inverse (arc) hyperbolic cosine.
-
asinh(double)
-
Returns the inverse (arc) hyperbolic sine.
-
atanh(double)
- Returns the inverse (arc) hyperbolic tangent.
-
cosh(double)
-
Returns the hyperbolic cosine.
-
cot(double)
-
Returns the cotangent.
-
erf(double)
-
Returns the error function.
-
erfc(double)
-
Returns the complementary error function.
-
gamma(double)
- Returns the gamma function.
-
log10(double)
-
Returns the base 10 logarithm.
-
logGamma(double)
-
Returns the logarithm gamma function.
-
nearestInteger(double)
-
Returns the nearest integer.
-
sign(double, double)
-
Returns the value of x with the sign of y.
-
sinh(double)
-
Returns the hyperbolic sine.
-
tanh(double)
-
Returns the hyperbolic tangent.
EPSILON_SMALL
public final static double EPSILON_SMALL
- The smallest relative spacing for doubles.
EPSILON_SMALL = 1.11022302462515e-16
EPSILON_LARGE
public final static double EPSILON_LARGE
- The largest relative spacing for doubles.
EPSILON_LARGE = 2.2204460492503e-16
Euler
public final static double Euler
- Euler's Constant.
Euler = 0.57721566490153286
Sfun
public Sfun()
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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