Math is a built-in object that has properties and methods for constants and functions. Not a function object.
Math is a built-in object that has properties and methods for constants and functions. Not a function object.
(abs this x)
Method.
The Math.abs() function returns the absolute value of a number
Math.abs(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs
Method. The Math.abs() function returns the absolute value of a number `Math.abs(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs`
(acos this x)
Method.
The Math.acos() function returns the arccosine (in radians) of number, that is
Math.acos(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acos
Method. The Math.acos() function returns the arccosine (in radians) of number, that is `Math.acos(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acos`
(acosh this x)
Method.
The Math.acosh() function returns the hyperbolic arc-cosine of number, that is
Math.acosh(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acosh
Method. The Math.acosh() function returns the hyperbolic arc-cosine of number, that is `Math.acosh(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acosh`
(asin this x)
Method.
The Math.asin() function returns the arcsine (in radians) of number, that is
Math.asin(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asin
Method. The Math.asin() function returns the arcsine (in radians) of number, that is `Math.asin(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asin`
(asinh this x)
Method.
The Math.asinh() function returns the hyperbolic arcsine of a that is
Math.asinh(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh
Method. The Math.asinh() function returns the hyperbolic arcsine of a that is `Math.asinh(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh`
(atan this x)
Method.
The Math.atan() function returns the arctangent (in radians) a number, that is
Math.atan(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan
Method. The Math.atan() function returns the arctangent (in radians) a number, that is `Math.atan(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan`
(atan2 this y x)
Method.
The Math.atan2() function returns the angle in the plane (in between the positive x-axis and the ray from (0,0) to the point for Math.atan2(y,x).
Math.atan2(y, x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2
Method. The Math.atan2() function returns the angle in the plane (in between the positive x-axis and the ray from (0,0) to the point for Math.atan2(y,x). `Math.atan2(y, x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2`
(atanh this x)
Method.
The Math.atanh() function returns the hyperbolic arctangent of number, that is
Math.atanh(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atanh
Method. The Math.atanh() function returns the hyperbolic arctangent of number, that is `Math.atanh(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atanh`
(cbrt this x)
Method.
The Math.cbrt() function returns the cube root of a number, that
Math.cbrt(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt
Method. The Math.cbrt() function returns the cube root of a number, that `Math.cbrt(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt`
(ceil this x)
Method.
The Math.ceil() function always rounds a number up to the next whole number or integer.
Math.ceil(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil
Method. The Math.ceil() function always rounds a number up to the next whole number or integer. `Math.ceil(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil`
(clz32 this x)
Method.
The Math.clz32() function returns the number of leading zero in the 32-bit binary representation of a number.
Math.clz32(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32
Method. The Math.clz32() function returns the number of leading zero in the 32-bit binary representation of a number. `Math.clz32(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32`
(cos this x)
Method.
The Math.cos() static function returns the cosine of the specified which must be specified in radians. This value is
Math.cos(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cos
Method. The Math.cos() static function returns the cosine of the specified which must be specified in radians. This value is `Math.cos(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cos`
(cosh this x)
Method.
The Math.cosh() function returns the hyperbolic cosine of a number, can be expressed using the constant e:
Math.cosh(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cosh
Method. The Math.cosh() function returns the hyperbolic cosine of a number, can be expressed using the constant e: `Math.cosh(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cosh`
(e this)
Property.
The Math.E property represents the base of natural logarithms, approximately 2.718.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E
Property. The Math.E property represents the base of natural logarithms, approximately 2.718. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E`
(exp this x)
Method.
The Math.exp() function returns ex, where x is the argument, e is Euler's number (also known as Napier's constant), the base the natural logarithms.
Math.exp(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/exp
Method. The Math.exp() function returns ex, where x is the argument, e is Euler's number (also known as Napier's constant), the base the natural logarithms. `Math.exp(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/exp`
(expm1 this x)
Method.
The Math.expm1() function returns ex - 1, where x is the argument, e the base of the natural logarithms.
Math.expm1(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/expm1
Method. The Math.expm1() function returns ex - 1, where x is the argument, e the base of the natural logarithms. `Math.expm1(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/expm1`
(floor this x)
Method.
The Math.floor() function returns the largest integer less than equal to a given number.
Math.floor(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor
Method. The Math.floor() function returns the largest integer less than equal to a given number. `Math.floor(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor`
(fround this double-float)
Method.
The Math.fround() function returns the nearest 32-bit single
float representation of a js.Number
.
var singleFloat = Math.fround(doubleFloat);
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/fround
Method. The Math.fround() function returns the nearest 32-bit single float representation of a `js.Number`. `var singleFloat = Math.fround(doubleFloat);` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/fround`
(hypot this & args)
Method.
The Math.hypot() function returns the square root of the sum squares of its arguments, that is:
Math.hypot([value1[, value2[, ...]]])
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot
Method. The Math.hypot() function returns the square root of the sum squares of its arguments, that is: `Math.hypot([value1[, value2[, ...]]])` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot`
(imul this a b)
Method.
The Math.imul() function returns the result of the C-like 32-bit of the two parameters.
var product = Math.imul(a, b);
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul
Method. The Math.imul() function returns the result of the C-like 32-bit of the two parameters. `var product = Math.imul(a, b);` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul`
(ln10 this)
Property.
The Math.LN10 property represents the natural logarithm of 10, 2.302:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN10
Property. The Math.LN10 property represents the natural logarithm of 10, 2.302: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN10`
(ln2 this)
Property.
The Math.LN2 property represents the natural logarithm of 2, 0.693:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2
Property. The Math.LN2 property represents the natural logarithm of 2, 0.693: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2`
(log this x)
Method.
The Math.log() function returns the natural logarithm (base e
)
a number, that is
Math.log(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log
Method. The Math.log() function returns the natural logarithm (base `e`) a number, that is `Math.log(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log`
(log10 this x)
Method.
The Math.log10() function returns the base 10 logarithm of a that is
Math.log10(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log10
Method. The Math.log10() function returns the base 10 logarithm of a that is `Math.log10(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log10`
(log10e this)
Property.
The Math.LOG10E property represents the base 10 logarithm of approximately 0.434:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG10E
Property. The Math.LOG10E property represents the base 10 logarithm of approximately 0.434: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG10E`
(log1p this x)
Method.
The Math.log1p() function returns the natural logarithm (base of 1 a number, that is
Math.log1p(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log1p
Method. The Math.log1p() function returns the natural logarithm (base of 1 a number, that is `Math.log1p(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log1p`
(log2 this x)
Method.
The Math.log2() function returns the base 2 logarithm of a number, is
Math.log2(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log2
Method. The Math.log2() function returns the base 2 logarithm of a number, is `Math.log2(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log2`
(log2e this)
Property.
The Math.LOG2E property represents the base 2 logarithm of e, 1.442:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG2E
Property. The Math.LOG2E property represents the base 2 logarithm of e, 1.442: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG2E`
(max this & args)
Method.
The Math.max() function returns the largest of zero or more numbers.
Math.max([value1[, value2[, ...]]])
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max
Method. The Math.max() function returns the largest of zero or more numbers. `Math.max([value1[, value2[, ...]]])` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max`
(min this & args)
Method.
The static function Math.min() returns the lowest-valued number
into it, or js.NaN
if any parameter isn't a number and can't
converted into one.
Math.min([value1[, value2[, ...]]])
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min
Method. The static function Math.min() returns the lowest-valued number into it, or `js.NaN` if any parameter isn't a number and can't converted into one. `Math.min([value1[, value2[, ...]]])` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min`
(pi this)
Property.
The Math.PI property represents the ratio of the circumference a circle to its diameter, approximately 3.14159:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/PI
Property. The Math.PI property represents the ratio of the circumference a circle to its diameter, approximately 3.14159: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/PI`
(pow this base exponent)
Method.
The Math.pow() function returns the base to the exponent power, is, baseexponent.
Math.pow(base, exponent)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow
Method. The Math.pow() function returns the base to the exponent power, is, baseexponent. `Math.pow(base, exponent)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow`
(random this)
Method.
The Math.random() function returns a floating-point, pseudo-random in the range 0–1 (inclusive of 0, but not 1) with approximately distribution over that range — which you can then scale to your range. The implementation selects the initial seed to the random generation algorithm; it cannot be chosen or reset by the user.
Math.random()
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
Method. The Math.random() function returns a floating-point, pseudo-random in the range 0–1 (inclusive of 0, but not 1) with approximately distribution over that range — which you can then scale to your range. The implementation selects the initial seed to the random generation algorithm; it cannot be chosen or reset by the user. `Math.random()` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random`
(round this x)
Method.
The Math.round() function returns the value of a number rounded the nearest integer.
Math.round(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round
Method. The Math.round() function returns the value of a number rounded the nearest integer. `Math.round(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round`
(set-e! this val)
Property.
The Math.E property represents the base of natural logarithms, approximately 2.718.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E
Property. The Math.E property represents the base of natural logarithms, approximately 2.718. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E`
(set-ln10! this val)
Property.
The Math.LN10 property represents the natural logarithm of 10, 2.302:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN10
Property. The Math.LN10 property represents the natural logarithm of 10, 2.302: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN10`
(set-ln2! this val)
Property.
The Math.LN2 property represents the natural logarithm of 2, 0.693:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2
Property. The Math.LN2 property represents the natural logarithm of 2, 0.693: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2`
(set-log10e! this val)
Property.
The Math.LOG10E property represents the base 10 logarithm of approximately 0.434:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG10E
Property. The Math.LOG10E property represents the base 10 logarithm of approximately 0.434: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG10E`
(set-log2e! this val)
Property.
The Math.LOG2E property represents the base 2 logarithm of e, 1.442:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG2E
Property. The Math.LOG2E property represents the base 2 logarithm of e, 1.442: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG2E`
(set-pi! this val)
Property.
The Math.PI property represents the ratio of the circumference a circle to its diameter, approximately 3.14159:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/PI
Property. The Math.PI property represents the ratio of the circumference a circle to its diameter, approximately 3.14159: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/PI`
(set-sqrt12! this val)
Property.
The Math.SQRT1_2 property represents the square root of 1/2 which approximately 0.707:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2
Property. The Math.SQRT1_2 property represents the square root of 1/2 which approximately 0.707: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2`
(set-sqrt2! this val)
Property.
The Math.SQRT2 property represents the square root of 2, approximately
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT2
Property. The Math.SQRT2 property represents the square root of 2, approximately See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT2`
(sign this x)
Method.
The Math.sign() function returns either a positive or negative 1, indicating the sign of a number passed into the argument. the number passed into Math.sign() is 0, it will return a /- Note that if the number is positive, an explicit (+) will not returned.
Math.sign(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign
Method. The Math.sign() function returns either a positive or negative 1, indicating the sign of a number passed into the argument. the number passed into Math.sign() is 0, it will return a /- Note that if the number is positive, an explicit (+) will not returned. `Math.sign(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign`
(sin this x)
Method.
The Math.sin() function returns the sine of a number.
Math.sin(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sin
Method. The Math.sin() function returns the sine of a number. `Math.sin(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sin`
(sinh this x)
Method.
The Math.sinh() function returns the hyperbolic sine of a number, can be expressed using the constant e:
Math.sinh(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sinh
Method. The Math.sinh() function returns the hyperbolic sine of a number, can be expressed using the constant e: `Math.sinh(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sinh`
(sqrt this x)
Method.
The Math.sqrt() function returns the square root of a number, is
Math.sqrt(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sqrt
Method. The Math.sqrt() function returns the square root of a number, is `Math.sqrt(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sqrt`
(sqrt12 this)
Property.
The Math.SQRT1_2 property represents the square root of 1/2 which approximately 0.707:
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2
Property. The Math.SQRT1_2 property represents the square root of 1/2 which approximately 0.707: See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2`
(sqrt2 this)
Property.
The Math.SQRT2 property represents the square root of 2, approximately
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT2
Property. The Math.SQRT2 property represents the square root of 2, approximately See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT2`
(tan this x)
Method.
The Math.tan() function returns the tangent of a number.
Math.tan(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tan
Method. The Math.tan() function returns the tangent of a number. `Math.tan(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tan`
(tanh this x)
Method.
The Math.tanh() function returns the hyperbolic tangent of a that is
Math.tanh(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tanh
Method. The Math.tanh() function returns the hyperbolic tangent of a that is `Math.tanh(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tanh`
(to-source this & args)
Method.
Returns the string "Math".
Method. Returns the string "Math".
(trunc this x)
Method.
The Math.trunc() function returns the integer part of a number removing any fractional digits.
Math.trunc(x)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc
Method. The Math.trunc() function returns the integer part of a number removing any fractional digits. `Math.trunc(x)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close