Mathematical functions from java.lang.Math.
Functions that are already defined elsewhere, like abs or min have been left out.
This module is not good for inclusion in user code, because of the overloaded primitive functions.
Better use
import Prelude.Math
which also defines the class Floating that makes it possibly to use the primitive functions in a type safe way.
The Double value that is closer than any other to e, the base of the natural logarithms.
The Double value that is closer than any other to pi, the ratio of the circumference of a circle to its diameter.
Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.
Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.
Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.
Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2.
Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2.
Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2.
Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2.
Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2.
Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2.
Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).
Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).
Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).
Returns the cube root of a value.
Returns the cube root of a value.
Returns the cube root of a value.
Returns the smallest (closest to negative infinity) value that is greater than or equal to the argument and is equal to a mathematical integer.
Returns the smallest (closest to negative infinity) value that is greater than or equal to the argument and is equal to a mathematical integer.
Returns the smallest (closest to negative infinity) value that is greater than or equal to the argument and is equal to a mathematical integer.
Returns the first argument with the sign of the second argument.
Returns the first argument with the sign of the second argument.
Returns the first argument with the sign of the second argument.
Returns the trigonometric cosine of an angle.
Returns the trigonometric cosine of an angle.
Returns the trigonometric cosine of an angle.
Returns the hyperbolic cosine of a floating point value.
Returns the hyperbolic cosine of a floating point value.
Returns the hyperbolic cosine of a floating point value.
Returns Euler's number e raised to the power of a floating-point value.
Returns Euler's number e raised to the power of a floating-point value.
Returns Euler's number e raised to the power of a floating-point value.
Returns e^x -1.
Returns e^x -1.
Returns e^x -1.
Returns the largest (closest to positive infinity) value that is less than or equal to the argument and is equal to a mathematical integer.
Special cases:
Returns the largest (closest to positive infinity) value that is less than or equal to the argument and is equal to a mathematical integer.
Special cases:
Returns the largest (closest to positive infinity) value that is less than or equal to the argument and is equal to a mathematical integer.
Special cases:
Returns the unbiased exponent used in the representation of a floating point number.
Returns the unbiased exponent used in the representation of a floating point number.
Returns the unbiased exponent used in the representation of a floating point number.
Returns sqrt (x² + y²) without intermediate overflow or underflow.
Returns sqrt (x² + y²) without intermediate overflow or underflow.
Returns sqrt (x² + y²) without intermediate overflow or underflow.
Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard.
Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard.
Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard.
Returns the natural logarithm (base e) of a value.
Returns the natural logarithm (base e) of a value.
Returns the natural logarithm (base e) of a value.
Returns the base 10 logarithm of a value.
Returns the base 10 logarithm of a value.
Returns the base 10 logarithm of a value.
Returns the natural logarithm of the sum of the argument and 1.
Returns the natural logarithm of the sum of the argument and 1.
Returns the natural logarithm of the sum of the argument and 1.
Returns the floating-point number adjacent to the first argument in the direction of the second argument.
Returns the floating-point number adjacent to the first argument in the direction of the second argument.
Returns the floating-point number adjacent to the first argument in the direction of the second argument.
Returns the floating-point value adjacent to the argument in the direction of positive infinity.
Returns the floating-point value adjacent to the argument in the direction of positive infinity.
Returns the floating-point value adjacent to the argument in the direction of positive infinity.
Returns the value of the first argument raised to the power of the second argument.
Returns the value of the first argument raised to the power of the second argument.
Returns the value of the first argument raised to the power of the second argument.
Returns the value of the first argument raised to the power of the second argument.
Returns the value of the first argument raised to the power of the second argument.
Returns the value of the first argument raised to the power of the second argument.
Returns the Double value that is closest in value to the argument and is equal to a mathematical integer.
Returns the Double value that is closest in value to the argument and is equal to a mathematical integer.
Returns the Double value that is closest in value to the argument and is equal to a mathematical integer.
Returns the closest Long to the argument, with ties rounding up.
Returns the closest Long to the argument, with ties rounding up.
Returns the closest Long to the argument, with ties rounding up.
scalb d scaleFactor
Return d * 2^scaleFactor rounded as if performed by a single correctly rounded floating-point multiply.
scalb d scaleFactor
Return d * 2^scaleFactor rounded as if performed by a single correctly rounded floating-point multiply.
scalb d scaleFactor
Return d * 2^scaleFactor rounded as if performed by a single correctly rounded floating-point multiply.
Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero.
Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero.
Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero.
Returns the trigonometric sine of an angle.
Returns the trigonometric sine of an angle.
Returns the trigonometric sine of an angle.
Returns the hyperbolic sine of a value.
Returns the hyperbolic sine of a value.
Returns the hyperbolic sine of a value.
Returns the correctly rounded positive square root of a value.
Returns the correctly rounded positive square root of a value.
Returns the correctly rounded positive square root of a value.
Returns the trigonometric tangent of an angle.
Returns the trigonometric tangent of an angle.
Returns the trigonometric tangent of an angle.
Returns the hyperbolic tangent of a floating point value.
Returns the hyperbolic tangent of a floating point value.
Returns the hyperbolic tangent of a floating point value.
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Returns the size of an ulp of the argument.
Returns the size of an ulp of the argument.
Returns the size of an ulp of the argument.
**𝖆, atan2𝖆, copySign𝖆, hypot𝖆, ieeeRemainder𝖆, nextAfter𝖆, pow𝖆
acos𝖇, asin𝖇, atan𝖇, cbrt𝖆, ceil𝖆, cosh𝖆, cos𝖆, expm1𝖆, exp𝖆, floor𝖆, log10𝖆, log1p𝖆, log𝖆, nextUp𝖆, rint𝖆, signum𝖆, sinh𝖆, sin𝖆, sqrt𝖆, tanh𝖆, tan𝖆, toDegrees𝖆, toRadians𝖆, ulp𝖆
acos𝖆, asin𝖆, atan𝖆, cbrt𝖇, ceil𝖇, cosh𝖇, cos𝖇, expm1𝖇, exp𝖇, floor𝖇, log10𝖇, log1p𝖇, log𝖇, rint𝖇, sinh𝖇, sin𝖇, sqrt𝖇, tanh𝖇, tan𝖇, toDegrees𝖇, toRadians𝖇
**, acos, asin, atan, atan2, cbrt, ceil, copySign, cos, cosh, exp, expm1, floor, getExponent, hypot, ieeeRemainder, log, log10, log1p, nextAfter, nextUp, pow, rint, round, scalb, signum, sin, sinh, sqrt, tan, tanh, toDegrees, toRadians, ulp