public final class ExtraMath extends AbstractMath
Modifier and Type | Method and Description |
---|---|
static double |
acosh(double x)
Returns the arc hyperbolic cosine of a double,
in the range of 0.0 through
![]() |
static double |
asinh(double x)
Returns the arc hyperbolic sine of a double,
in the range of -
![]() ![]() |
static double |
atanh(double x)
Returns the arc hyperbolic tangent of a double,
in the range of -
![]() ![]() |
static double |
binomial(double n,
double k)
Returns the binomial coefficient (n k).
|
static int |
binomial(int n,
int k)
Returns the binomial coefficient (n k).
|
static double |
cosh(double x)
Returns the hyperbolic cosine of a double.
|
static double |
factorial(double x)
Returns the factorial.
|
static double |
hypot(double x,
double y)
Returns sqrt(x2+y2).
|
static double |
logFactorial(double x)
Returns the natural logarithm of the factorial.
|
static int |
pow(int a,
int b)
Returns ab.
|
static double |
sinh(double x)
Returns the hyperbolic sine of a double.
|
static double |
tanh(double x)
Returns the hyperbolic tangent of a double.
|
public static double hypot(double x, double y)
public static int pow(int a, int b)
public static double factorial(double x)
x
- a double.SpecialMath.gamma(double)
public static double logFactorial(double x)
x
- a double.SpecialMath.logGamma(double)
public static int binomial(int n, int k)
n
- an integer.k
- an integer.public static double binomial(double n, double k)
n
- a double.k
- a double.public static double sinh(double x)
x
- a double.public static double cosh(double x)
x
- a double.public static double tanh(double x)
x
- a double.public static double asinh(double x)
x
- a double.public static double acosh(double x)
x
- a double.public static double atanh(double x)
x
- a double.