MathLib includes mathematical and trigonometric functions.
eglx.lang
Function | Purpose |
---|---|
MathLib.abs function | MathLib.abs returns the absolute value of a number. |
MathLib.acos function | MathLib.acos returns the arc cosine (inverse cosine) of a number. |
MathLib.asin function | MathLib.asin returns the arc sine (inverse sine) of a number. |
MathLib.atan function | MathLib.atan returns the arc tangent (inverse tangent) of a number. |
MathLib.atan2 function | MathLib.atan2 computes the principal value of the arc tangent of y/x, using the signs of both arguments to determine the quadrant of the return value. |
MathLib.ceiling function | MathLib.ceiling returns the smallest integer not less than a specified number. |
MathLib.cos function | MathLib.cos returns the cosine of an angle that is measured in radians. |
MathLib.cosh function | MathLib.cosh returns the hyperbolic cosine of a number. |
MathLib.decimals function | MathLib.decimals returns the number of decimal places in the type of a numeric variable. |
MathLib.exp function | MathLib.exp returns the exponential of a number, which is the constant e (the base of natural logarithms) raised to the power of that number. |
MathLib.floor function | MathLib.floor returns the largest integer not greater than a specified number. |
MathLib.frexp function | MathLib.frexp splits a number into two components: a normalized fraction that ranges from .5 to 1, and an exponent that represents the power of 2. |
MathLib.ldexp function | MathLib.ldexp takes as input a numeric expression and an exponent that represents a power of 2. The function returns the value of the expression times 2 to the power represented by the exponent. |
MathLib.log function | MathLib.log returns the natural logarithm of a number. |
MathLib.log10 function | MathLib.log10 returns the base 10 logarithm of a number. |
MathLib.max function | MathLib.max returns the greater of two numeric values. |
MathLib.min function | MathLib.min returns the lesser of two numeric values. |
MathLib.modf function | MathLib.modf splits a numeric value into two components: an integer and a fraction. |
MathLib.pow function | MathLib.pow returns a number raised to the power of a second number. |
MathLib.precision function | MathLib.precision returns the maximum number of digits that are possible in a variable value. |
MathLib.random function | MathLib.random returns a pseudorandom value between 0.0 and 1.0, inclusive. |
MathLib.round function | MathLib.round rounds the value of an expression and returns the result. |
MathLib.sin function | MathLib.sin returns the sine of an angle that is measured in radians. |
MathLib.sinh function | MathLib.sinh returns the hyperbolic sine of a number. |
MathLib.sqrt function | MathLib.sqrt returns the positive square root of a number. |
MathLib.tan function | MathLib.tan returns the tangent of an angle that is measured in radians. |
MathLib.tanh function | MathLib.tanh returns the hyperbolic tangent of a number. |
Target | Issue |
---|---|
Java | See the function-specific topics. |
JavaScript | See the function-specific topics. |