Java org.apache.commons.math3.util FastMath fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.util FastMath fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.util FastMath.

The text is from its open source code.

Field

doublePI
Archimede's constant PI, ratio of circle circumference to diameter.
doubleE
Napier's constant e, base of the natural logarithm.

Method

intabs(final int x)
Absolute value.
longabs(final long x)
Absolute value.
floatabs(final float x)
Absolute value.
doubleabs(double x)
Absolute value.
doubleacos(double x)
Compute the arc cosine of a number.
doubleacosh(final double a)
Compute the inverse hyperbolic cosine of a number.
doubleasin(double x)
Compute the arc sine of a number.
doubleasinh(double a)
Compute the inverse hyperbolic sine of a number.
doubleatan(double x)
Arctangent function
doubleatan2(double y, double x)
Two arguments arctangent function
doubleatanh(double a)
Compute the inverse hyperbolic tangent of a number.
doublecbrt(double x)
Compute the cubic root of a number.
doubleceil(double x)
Get the smallest whole number larger than x.
doublecopySign(double magnitude, double sign)
Returns the first argument with the sign of the second argument.
floatcopySign(float magnitude, float sign)
Returns the first argument with the sign of the second argument.
doublecos(double x)
Cosine function.
doublecosh(double x)
Compute the hyperbolic cosine of a number.
doubleexp(double x)
Exponential function.
doubleexpm1(double x)
Compute exp(x) - 1
doublefloor(double x)
Get the largest whole number smaller than x.
intgetExponent(final double d)
Return the exponent of a double number, removing the bias.
intgetExponent(final float f)
Return the exponent of a float number, removing the bias.
doublehypot(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.
doubleIEEEremainder(double dividend, double divisor)
Computes the remainder as prescribed by the IEEE 754 standard.
doublelog(final double x, final double[] hiPrec)
Internal helper method for natural logarithm function.
doublelog(double base, double x)
Computes the logarithm in a given base.
doublelog(final double x)
Natural logarithm.
doublelog10(final double x)
Compute the base 10 logarithm.
doublelog1p(final double x)
Computes log(1 + x).
intmax(final int a, final int b)
Compute the maximum of two values
longmax(final long a, final long b)
Compute the maximum of two values
floatmax(final float a, final float b)
Compute the maximum of two values
doublemax(final double a, final double b)
Compute the maximum of two values
intmin(final int a, final int b)
Compute the minimum of two values
longmin(final long a, final long b)
Compute the minimum of two values
floatmin(final float a, final float b)
Compute the minimum of two values
doublemin(final double a, final double b)
Compute the minimum of two values
doublenextAfter(double d, double direction)
Get the next machine representable number after a number, moving in the direction of another number.
floatnextAfter(final float f, final double direction)
Get the next machine representable number after a number, moving in the direction of another number.
doublenextDown(final double a)
Compute next number towards negative infinity.
floatnextDown(final float a)
Compute next number towards negative infinity.
doublenextUp(final double a)
Compute next number towards positive infinity.
floatnextUp(final float a)
Compute next number towards positive infinity.
doublepow(double x, double y)
Power function.
doublepow(double d, int e)
Raise a double to an int power.
doublerint(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.
longround(double x)
Get the closest long to x.
intround(final float x)
Get the closest int to x.
doublescalb(final double d, final int n)
Multiply a double number by a power of 2.
floatscalb(final float f, final int n)
Multiply a float number by a power of 2.
doublesignum(final double a)
Compute the signum of a number.
floatsignum(final float a)
Compute the signum of a number.
doublesin(double x)
Sine function.
doublesinh(double x)
Compute the hyperbolic sine of a number.
doublesqrt(final double a)
Compute the square root of a number.
doubletan(double x)
Tangent function.
doubletanh(double x)
Compute the hyperbolic tangent of a number.
doubletoDegrees(double x)
Convert radians to degrees, with error of less than 0.5 ULP
inttoIntExact(final long n)
Convert a long to interger, detecting overflows
doubletoRadians(double x)
Convert degrees to radians, with error of less than 0.5 ULP
doubleulp(double x)
Compute least significant bit (Unit in Last Position) for a number.
floatulp(float x)
Compute least significant bit (Unit in Last Position) for a number.