Example usage for Java org.apache.commons.math3.util FastMath fields, constructors, methods, implement or subclass
The text is from its open source code.
double | PI Archimede's constant PI, ratio of circle circumference to diameter. |
double | E Napier's constant e, base of the natural logarithm. |
int | abs(final int x) Absolute value. |
long | abs(final long x) Absolute value. |
float | abs(final float x) Absolute value. |
double | abs(double x) Absolute value. |
double | acos(double x) Compute the arc cosine of a number. |
double | acosh(final double a) Compute the inverse hyperbolic cosine of a number. |
double | asin(double x) Compute the arc sine of a number. |
double | asinh(double a) Compute the inverse hyperbolic sine of a number. |
double | atan(double x) Arctangent function |
double | atan2(double y, double x) Two arguments arctangent function |
double | atanh(double a) Compute the inverse hyperbolic tangent of a number. |
double | cbrt(double x) Compute the cubic root of a number. |
double | ceil(double x) Get the smallest whole number larger than x. |
double | copySign(double magnitude, double sign) Returns the first argument with the sign of the second argument. |
float | copySign(float magnitude, float sign) Returns the first argument with the sign of the second argument. |
double | cos(double x) Cosine function. |
double | cosh(double x) Compute the hyperbolic cosine of a number. |
double | exp(double x) Exponential function. |
double | expm1(double x) Compute exp(x) - 1 |
double | floor(double x) Get the largest whole number smaller than x. |
int | getExponent(final double d) Return the exponent of a double number, removing the bias. |
int | getExponent(final float f) Return the exponent of a float number, removing the bias. |
double | hypot(final double x, final double y) Returns the hypotenuse of a triangle with sides x and y - sqrt(x2 +y2) avoiding intermediate overflow or underflow. |
double | IEEEremainder(double dividend, double divisor) Computes the remainder as prescribed by the IEEE 754 standard. |
double | log(final double x, final double[] hiPrec) Internal helper method for natural logarithm function. |
double | log(double base, double x) Computes the logarithm in a given base. |
double | log(final double x) Natural logarithm. |
double | log10(final double x) Compute the base 10 logarithm. |
double | log1p(final double x) Computes log(1 + x). |
int | max(final int a, final int b) Compute the maximum of two values |
long | max(final long a, final long b) Compute the maximum of two values |
float | max(final float a, final float b) Compute the maximum of two values |
double | max(final double a, final double b) Compute the maximum of two values |
int | min(final int a, final int b) Compute the minimum of two values |
long | min(final long a, final long b) Compute the minimum of two values |
float | min(final float a, final float b) Compute the minimum of two values |
double | min(final double a, final double b) Compute the minimum of two values |
double | nextAfter(double d, double direction) Get the next machine representable number after a number, moving in the direction of another number. |
float | nextAfter(final float f, final double direction) Get the next machine representable number after a number, moving in the direction of another number. |
double | nextDown(final double a) Compute next number towards negative infinity. |
float | nextDown(final float a) Compute next number towards negative infinity. |
double | nextUp(final double a) Compute next number towards positive infinity. |
float | nextUp(final float a) Compute next number towards positive infinity. |
double | pow(double x, double y) Power function. |
double | pow(double d, int e) Raise a double to an int power. |
double | rint(double x) Get the whole number that is the nearest to x, or the even one if x is exactly half way between two integers. |
long | round(double x) Get the closest long to x. |
int | round(final float x) Get the closest int to x. |
double | scalb(final double d, final int n) Multiply a double number by a power of 2. |
float | scalb(final float f, final int n) Multiply a float number by a power of 2. |
double | signum(final double a) Compute the signum of a number. |
float | signum(final float a) Compute the signum of a number. |
double | sin(double x) Sine function. |
double | sinh(double x) Compute the hyperbolic sine of a number. |
double | sqrt(final double a) Compute the square root of a number. |
double | tan(double x) Tangent function. |
double | tanh(double x) Compute the hyperbolic tangent of a number. |
double | toDegrees(double x) Convert radians to degrees, with error of less than 0.5 ULP |
int | toIntExact(final long n) Convert a long to interger, detecting overflows |
double | toRadians(double x) Convert degrees to radians, with error of less than 0.5 ULP |
double | ulp(double x) Compute least significant bit (Unit in Last Position) for a number. |
float | ulp(float x) Compute least significant bit (Unit in Last Position) for a number. |