|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.math.ElementaryFunction
Utility case for defining elementary mathemtical functions that are not, but should be, included in the java.Math class.
| Field Summary | |
static double |
EPS
small tolerance value |
| Constructor Summary | |
ElementaryFunction()
|
|
| Method Summary | |
static double |
acosh(double x)
Inverse hyperbolic cosine function. |
static double |
asinh(double x)
Inverse hyperbolic sine function. |
static double |
atanh(double x)
Inverse hyperbolic tangent function. |
static double |
cosh(double x)
Hyperbolic cosine function. |
static double |
sinc(double x)
sinc function = sin(x)/x For small values of x we Taylor expand the sine function to sixth order, sinc(x) = 1 - x^2/6 + x^4/120 - x^6/5040 + O(x^8) otherwise we return Math.sin(x)/x. |
static double |
sinch(double x)
sinch function = sinh(x)/x For small values of x we Taylor expand the hyperbolic sine function to sixth order, sinch(x) = 1 + x^2/6 + x^4/120 + x^6/5040 + O(x^8) otherwise we return sinh(x)/x. |
static double |
sinh(double x)
Hyperbolic sine function. |
static double |
tanh(double x)
Hyperbolic tangent function. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final double EPS
| Constructor Detail |
public ElementaryFunction()
| Method Detail |
public static double sinc(double x)
x - any real numberpublic static double sinch(double x)
x - any real numberpublic static final double sinh(double x)
x - any real numberpublic static final double cosh(double x)
x - any real numberpublic static final double tanh(double x)
public static final double asinh(double x)
x - any real number
public static final double acosh(double x)
throws java.lang.IllegalArgumentException
x - a real number in the interval [1,+inf)
java.lang.IllegalArgumentException - argument value is outside the domain of definition
public static final double atanh(double x)
throws java.lang.IllegalArgumentException
x - a real number in the open interval (-1,1)
java.lang.IllegalArgumentException - argument value is outside the domain of definition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||