Online Java Math Functions

abs - Returns the absolute value of x

acos - Returns the arccosine of x, in radians

asin - Returns the arcsine of x, in radians

atan - Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians

atan2 - Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).

cbrt - Returns the cube root of x

ceil - Returns the value of x rounded up to its nearest integer

copySign - Returns the first floating point x with the sign of the second floating point y

cos - Returns the cosine of x (x is in radians)

cosh - Returns the hyperbolic cosine of a double value

exp - Returns the value of Ex

expm1 - Returns ex -1

floor - Returns the value of x rounded down to its nearest integer

getExponent - Returns the unbiased exponent used in x

hypot - Returns sqrt(x2 +y2) without intermediate overflow or underflow

IEEEremainder - Computes the remainder operation on x and y as prescribed by the IEEE 754 standard

log - Returns the natural logarithm (base E) of x

log10 - Returns the base 10 logarithm of x

log1p - Returns the natural logarithm (base E) of the sum of x and 1

max - Returns the number with the highest value

min - Returns the number with the lowest value

nextAfter - Returns the floating point number adjacent to x in the direction of y

nextUp - Returns the floating point value adjacent to x in the direction of positive infinity

pow - Returns the value of x to the power of y

random - Returns a random number between 0 and 1

rint - Returns the double value that is closest to x and equal to a mathematical integer

round - Returns the value of x rounded to its nearest integer

signum - Returns the sign of x

sin - Returns the sine of x (x is in radians)

sinh - Returns the hyperbolic sine of a double value

sqrt - Returns the square root of x

tan - Returns the tangent of an angle

tanh - Returns the hyperbolic tangent of a double value

toDegrees - Converts an angle measured in radians to an approx. equivalent angle measured in degrees

toRadians - Converts an angle measured in degrees to an approx. angle measured in radians

ulp - Returns the size of the unit of least precision (ulp) of x