| Method |
Description |
| abs(x) |
Returns the absolute value of x |
| acos(x) |
Returns the arccosine of x, in radians |
| acosh(x) |
Returns the hyperbolic arccosine of x |
| asin(x) |
Returns the arcsine of x, in radians |
| asinh(x) |
Returns the hyperbolic arcsine of x |
| atan(x) |
Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians |
| atan2(y, x) |
Returns the arctangent of the quotient of its arguments |
| atanh(x) |
Returns the hyperbolic arctangent of x |
| cbrt(x) |
Returns the cubic root of x |
| ceil(x) |
Returns x, rounded upwards to the nearest integer |
| Math.clz32(x) |
Returns the number of leading zeros in a 32-bit binary representation of x |
| cos(x) |
Returns the cosine of x (x is in radians) |
| cosh(x) |
Returns the hyperbolic cosine of x |
| exp(x) |
Returns the value of Ex |
| expm1(x) |
Returns the value of Ex minus 1 |
| floor(x) |
Returns x, rounded downwards to the nearest integer |
| Math.fround(x) |
Returns the nearest (32-bit single precision) float representation of a number |
| log(x) |
Returns the natural logarithmof x |
| log10(x) |
Returns the base-10 logarithm of x |
| log1p(x) |
Returns the natural logarithm of 1 + x |
| log2(x) |
Returns the base-2 logarithm of x |
| max(x, y, z, ..., n) |
Returns the number with the highest value |
| min(x, y, z, ..., n) |
Returns the number with the lowest value |
| pow(x, y) |
Returns the value of x to the power of y |
| random() |
Returns a random number between 0 and 1 |
| round(x) |
Rounds x to the nearest integer |
| sign(x) |
Returns the sign of a number (checks whether it is positive, negative or zero) |
| sin(x) |
Returns the sine of x (x is in radians) |
| sinh(x) |
Returns the hyperbolic sine of x |
| sqrt(x) |
Returns the square root of x |
| tan(x) |
Returns the tangent of an angle |
| tanh(x) |
Returns the hyperbolic tangent of a number |
| trunc(x) |
Returns the integer part of a number (x) |
| x.method() |
Description |
| concat() |
Joins two or more arrays, and returns a copy of the joined arrays |
| copyWithin() |
Copies array elements within the array, to and from specified positions |
| entries() |
Returns a key/value pair Array Iteration Object |
| every() |
Checks if every element in an array pass a test |
| fill() |
Fill the elements in an array with a static value |
| filter() |
Creates a new array with every element in an array that pass a test |
| find() |
Returns the value of the first element in an array that pass a test |
| findIndex() |
Returns the index of the first element in an array that pass a test |
| forEach() |
Calls a function for each array element |
| from() |
Creates an array from an object |
| includes() |
Check if an array contains the specified element |
| indexOf() |
Search the array for an element and returns its position |
| isArray() |
Checks whether an object is an array |
| join() |
Joins all elements of an array into a string |
| keys() |
Returns a Array Iteration Object, containing the keys of the original array |
| lastIndexOf() |
Search the array for an element, starting at the end, and returns its position |
| map() |
Creates a new array with the result of calling a function for each array element |
| pop() |
Removes the last element of an array, and returns that element |
| push() |
Adds new elements to the end of an array, and returns the new length |
| reduce() |
Reduce the values of an array to a single value (going left-to-right) |
| reduceRight() |
Reduce the values of an array to a single value (going right-to-left) |
| reverse() |
Reverses the order of the elements in an array |
| shift() |
Removes the first element of an array, and returns that element |
| slice() |
Selects a part of an array, and returns the new array |
| some() |
Checks if any of the elements in an array pass a test |
| sort() |
Sorts the elements of an array |
| splice() |
Adds/Removes elements from an array |
| toString() |
Converts an array to a string, and returns the result |
| unshift() |
Adds new elements to the beginning of an array, and returns the new length |
| valueOf() |
Returns the primitive value of an array |
| Category | Functions |
| constants | E, Infinity, LN10, LN2, LOG10E, LOG2E, NaN, PI, SQRT1_2, SQRT2, e, false, i, null, phi, pi, tau, true |
| operator | +, -, *, /, ^, .*, ./, .^, %, mod |
| operator | add(x,y), divide(x,y), dotDivide(x,y), dotMultiply(x,y), dotPow(x,y), mod(x,y), multiply(x,y), pow(x,y), subtract(x,y), unaryMinus(x), unaryPlus(x) |
| Algebra | derivative, lsolve, lsolveAll, lup, lusolve, qr, rationalize, simplify, slu, usolve, usolveAll |
| Arithmetic | abs(x), cbrt(x), ceil(x), cube(x), exp(x), expm(x), expm1(x), fix(x), floor(x), gcd(x), hypot(x), lcm(x), log(x), log10(x), log1p(x), log2(x), norm(x), nthRoot(x), nthRoots(x), round(x), sign(x), sqrt(x), sqrtm(x), square(x), xgcd(x) |
| Bitwise | bitAnd, bitNot, bitOr, bitXor, leftShift, rightArithShift, rightLogShift |
| Combinatorics | bellNumbers, catalan, composition, stirlingS2 |
| complex | arg(x), conj(x), im(x), re(x) |
| matrix |
column(x), concat(x), cross(x), ctranspose(x), det(x), diag(x), diff(x), dot(x), eigs(x), filter(x), flatten(x), forEach(x), getMatrixDataType(x), identity(x), inv(x), kron(x), map(x), ones(x), partitionSelect(x), reshape(x), resize(x), rotationMatrix(x), row(x), size(x), sort(x), squeeze(x), subset(x), trace(x), transpose(x), zeros(x) |
| Bitwise | bitAnd, bitNot, bitOr, bitXor, leftShift, rightArithShift, rightLogShift |
| Construction | bignumber, boolean, complex, createUnit, fraction, index, matrix, number, sparse, splitUnit, string, unit |
| Bitwise | bitAnd, bitNot, bitOr, bitXor, leftShift, rightArithShift, rightLogShift |
| Expression | evaluate, help |
| Geometry | distance, intersect |
| Logical | and, not, or, xor |
| Probability | combinations(x), combinationsWithRep(x), factorial(x), gamma(x), kldivergence(x), multinomial(x), permutations(x), pickRandom(x), random(x), randomInt(x) |
| Relational | compare, compareNatural, compareText, deepEqual, equal, equalText, larger, largerEq, smaller, smallerEq, unequal
|
| Set | setCartesian(x), setDifference(x), setDistinct(x), setIntersect(x), setIsSubset(x), setMultiplicity(x), setPowerset(x), setSize(x), setSymDifference(x), setUnion(x) |
| Statistics | mad(x), max(x), mean(x), median(x), min(x), mode(x), prod(x), quantileSeq(x), std(x), sum(x), variance(x) |
| special | erf(x), gamma(x), lgamma(x), zeta(x) |
| Trigonometry | acos, acosh, acot, acoth, acsc, acsch, asec, asech, asin, asinh, atan, atan2, atanh, cos, cosh, cot, coth, csc, csch, sec, sech, sin, sinh, tan, tanh |
| Utils | bin, clone, format, hasNumericValue, hex, isInteger, isNaN, isNegative, isNumeric, isPositive, isPrime, isZero, numeric, oct, typeOf, range, to |