def.js

## Class Math

• ```@Interface
public abstract class Math
extends Object```
• ### Field Summary

Fields
Modifier and Type Field and Description
`static double` `E`
The mathematical constant e.
`static double` `LN10`
The natural logarithm of 10.
`static double` `LN2`
The natural logarithm of 2.
`static double` `LOG10E`
The base-10 logarithm of e.
`static double` `LOG2E`
The base-2 logarithm of e.
`static double` `PI`
Pi.
`static double` `SQRT1_2`
The square root of 0.5, or, equivalently, one divided by the square root of 2.
`static double` `SQRT2`
The square root of 2.
• ### Fields inherited from class def.js.Object

`constructor, prototype`
• ### Constructor Summary

Constructors
Constructor and Description
`Math()`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`static String` `\$getStatic(Symbol toStringTag)`
`static double` `abs(double x)`
Returns the absolute value of a number (the value without regard to whether it is positive or negative).
`static double` `acos(double x)`
Returns the arc cosine (or inverse cosine) of a number.
`static double` `acosh(double x)`
Returns the inverse hyperbolic cosine of a number.
`static double` `asin(double x)`
Returns the arcsine of a number.
`static double` `asinh(double x)`
Returns the inverse hyperbolic sine of a number.
`static double` `atan(double x)`
Returns the arctangent of a number.
`static double` ```atan2(double y, double x)```
Returns the angle (in radians) from the X axis to a point.
`static double` `atanh(double x)`
Returns the inverse hyperbolic tangent of a number.
`static double` `cbrt(double x)`
Returns an implementation-dependent approximation to the cube root of number.
`static double` `ceil(double x)`
Returns the smallest number greater than or equal to its numeric argument.
`static double` `clz32(double x)`
Returns the number of leading zero bits in the 32-bit binary representation of a number.
`static double` `cos(double x)`
Returns the cosine of a number.
`static double` `cosh(double x)`
Returns the hyperbolic cosine of a number.
`static double` `exp(double x)`
Returns e (the base of natural logarithms) raised to a power.
`static double` `expm1(double x)`
Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of the natural logarithms).
`static double` `floor(double x)`
Returns the greatest number less than or equal to its numeric argument.
`static double` `fround(double x)`
Returns the nearest single precision float representation of a number.
`static double` `hypot(double... values)`
Returns the square root of the sum of squares of its arguments.
`static double` ```imul(double x, double y)```
Returns the result of 32-bit multiplication of two numbers.
`static double` `log(double x)`
Returns the natural logarithm (base e) of a number.
`static double` `log10(double x)`
Returns the base 10 logarithm of a number.
`static double` `log1p(double x)`
Returns the natural logarithm of 1 + x.
`static double` `log2(double x)`
Returns the base 2 logarithm of a number.
`static double` `max(double... values)`
Returns the larger of a set of supplied numeric expressions.
`static double` `min(double... values)`
Returns the smaller of a set of supplied numeric expressions.
`static double` ```pow(double x, double y)```
Returns the value of a base expression taken to a specified power.
`static double` `random()`
Returns a pseudorandom number between 0 and 1.
`static double` `round(double x)`
Returns a supplied numeric expression rounded to the nearest number.
`static double` `sign(double x)`
Returns the sign of the x, indicating whether x is positive, negative or zero.
`static double` `sin(double x)`
Returns the sine of a number.
`static double` `sinh(double x)`
Returns the hyperbolic sine of a number.
`static double` `sqrt(double x)`
Returns the square root of a number.
`static double` `tan(double x)`
Returns the tangent of a number.
`static double` `tanh(double x)`
Returns the hyperbolic tangent of a number.
`static double` `trunc(double x)`
Returns the integral part of the a numeric expression, x, removing any fractional digits.
• ### Methods inherited from class def.js.Object

`\$applyStatic, \$applyStatic, \$delete, \$delete, \$get, \$get, \$set, \$set, \$super, assign, create, create, defineProperties, defineProperty, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, hasOwnProperty, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, propertyIsEnumerable, propertyIsEnumerable, seal, toJSString, toLocaleString, toString, valueOf`
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`
• ### Field Detail

• #### E

`public static double E`
The mathematical constant e. This is Euler's number, the base of natural logarithms.
• #### LN10

`public static double LN10`
The natural logarithm of 10.
• #### LN2

`public static double LN2`
The natural logarithm of 2.
• #### LOG2E

`public static double LOG2E`
The base-2 logarithm of e.
• #### LOG10E

`public static double LOG10E`
The base-10 logarithm of e.
• #### PI

`public static double PI`
Pi. This is the ratio of the circumference of a circle to its diameter.
• #### SQRT1_2

`public static double SQRT1_2`
The square root of 0.5, or, equivalently, one divided by the square root of 2.
• #### SQRT2

`public static double SQRT2`
The square root of 2.
• ### Constructor Detail

• #### Math

`public Math()`
• ### Method Detail

• #### abs

`public static double abs(double x)`
Returns the absolute value of a number (the value without regard to whether it is positive or negative). For example, the absolute value of -5 is the same as the absolute value of 5.
Parameters:
`x` - A numeric expression for which the absolute value is needed.
• #### acos

`public static double acos(double x)`
Returns the arc cosine (or inverse cosine) of a number.
Parameters:
`x` - A numeric expression.
• #### asin

`public static double asin(double x)`
Returns the arcsine of a number.
Parameters:
`x` - A numeric expression.
• #### atan

`public static double atan(double x)`
Returns the arctangent of a number.
Parameters:
`x` - A numeric expression for which the arctangent is needed.
• #### atan2

```public static double atan2(double y,
double x)```
Returns the angle (in radians) from the X axis to a point.
Parameters:
`y` - A numeric expression representing the cartesian y-coordinate.
`x` - A numeric expression representing the cartesian x-coordinate.
• #### ceil

`public static double ceil(double x)`
Returns the smallest number greater than or equal to its numeric argument.
Parameters:
`x` - A numeric expression.
• #### cos

`public static double cos(double x)`
Returns the cosine of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### exp

`public static double exp(double x)`
Returns e (the base of natural logarithms) raised to a power.
Parameters:
`x` - A numeric expression representing the power of e.
• #### floor

`public static double floor(double x)`
Returns the greatest number less than or equal to its numeric argument.
Parameters:
`x` - A numeric expression.
• #### log

`public static double log(double x)`
Returns the natural logarithm (base e) of a number.
Parameters:
`x` - A numeric expression.
• #### max

`public static double max(double... values)`
Returns the larger of a set of supplied numeric expressions.
Parameters:
`values` - Numeric expressions to be evaluated.
• #### min

`public static double min(double... values)`
Returns the smaller of a set of supplied numeric expressions.
Parameters:
`values` - Numeric expressions to be evaluated.
• #### pow

```public static double pow(double x,
double y)```
Returns the value of a base expression taken to a specified power.
Parameters:
`x` - The base value of the expression.
`y` - The exponent value of the expression.
• #### random

`public static double random()`
Returns a pseudorandom number between 0 and 1.
• #### round

`public static double round(double x)`
Returns a supplied numeric expression rounded to the nearest number.
Parameters:
`x` - The value to be rounded to the nearest number.
• #### sin

`public static double sin(double x)`
Returns the sine of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### sqrt

`public static double sqrt(double x)`
Returns the square root of a number.
Parameters:
`x` - A numeric expression.
• #### tan

`public static double tan(double x)`
Returns the tangent of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### clz32

`public static double clz32(double x)`
Returns the number of leading zero bits in the 32-bit binary representation of a number.
Parameters:
`x` - A numeric expression.
• #### imul

```public static double imul(double x,
double y)```
Returns the result of 32-bit multiplication of two numbers.
Parameters:
`x` - First number
`y` - Second number
• #### sign

`public static double sign(double x)`
Returns the sign of the x, indicating whether x is positive, negative or zero.
Parameters:
`x` - The numeric expression to test
• #### log10

`public static double log10(double x)`
Returns the base 10 logarithm of a number.
Parameters:
`x` - A numeric expression.
• #### log2

`public static double log2(double x)`
Returns the base 2 logarithm of a number.
Parameters:
`x` - A numeric expression.
• #### log1p

`public static double log1p(double x)`
Returns the natural logarithm of 1 + x.
Parameters:
`x` - A numeric expression.
• #### expm1

`public static double expm1(double x)`
Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of the natural logarithms).
Parameters:
`x` - A numeric expression.
• #### cosh

`public static double cosh(double x)`
Returns the hyperbolic cosine of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### sinh

`public static double sinh(double x)`
Returns the hyperbolic sine of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### tanh

`public static double tanh(double x)`
Returns the hyperbolic tangent of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### acosh

`public static double acosh(double x)`
Returns the inverse hyperbolic cosine of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### asinh

`public static double asinh(double x)`
Returns the inverse hyperbolic sine of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### atanh

`public static double atanh(double x)`
Returns the inverse hyperbolic tangent of a number.
Parameters:
`x` - A numeric expression that contains an angle measured in radians.
• #### hypot

`public static double hypot(double... values)`
Returns the square root of the sum of squares of its arguments.
Parameters:
`values` - Values to compute the square root for. If no arguments are passed, the result is +0. If there is only one argument, the result is the absolute value. If any argument is +Infinity or -Infinity, the result is +Infinity. If any argument is NaN, the result is NaN. If all arguments are either +0 or −0, the result is +0.
• #### trunc

`public static double trunc(double x)`
Returns the integral part of the a numeric expression, x, removing any fractional digits. If x is already an integer, the result is x.
Parameters:
`x` - A numeric expression.
• #### fround

`public static double fround(double x)`
Returns the nearest single precision float representation of a number.
Parameters:
`x` - A numeric expression.
• #### cbrt

`public static double cbrt(double x)`
Returns an implementation-dependent approximation to the cube root of number.
Parameters:
`x` - A numeric expression.
• #### \$getStatic

`public static String \$getStatic(Symbol toStringTag)`

Copyright 2015, Cinchéo SAS - Web site: http://www.jsweet.org