Main Functions
Arithmetic
- abs(x)
- add(x, y)
- cbrt(x)
- ceil(x)
- cube(x)
- divide(x, y)
- dotDivide(x, y)
- dotMultiply(x, y)
- dotPow(x, y)
- exp(x)
- fix(x)
- floor(x)
- gcd(a, b)
- hypot(a, b, …)
- lcm(a, b)
- log(x [, base])
- log10(x)
- mod(x, y)
- multiply(x, y)
- norm(x [, p])
- nthRoot(a)
- pow(x, y)
- round(x [, n])
- sign(x)
- sqrt(x)
- square(x)
- subtract(x, y)
- unaryMinus(x)
- unaryPlus(x)
- xgcd(a, b)
Bitwise
- bitAnd(x, y)
- bitNot(x)
- bitOr(x, y)
- bitXor(x, y)
- leftShift(x, y)
- rightArithShift(x, y)
- rightLogShift(x, y)
Combinatorics
Geometry
- distance([x1, y1], [x2, y2])
- intersect(endPoint1Line1, endPoint2Line1, endPoint1Line2, endPoint2Line2)
Probability
- combinations(n, k)
- factorial(n)
- kldivergence(x, y)
- multinomial(a)
- permutations(n [, k])
- pickRandom(array)
- randomInt([min, max])
Relational
- compare(x, y)
- deepEqual(x, y)
- equal(x, y)
- larger(x, y)
- largerEq(x, y)
- smaller(x, y)
- smallerEq(x, y)
- unequal(x, y)
Statistics
- max(a, b, c, …)
- mean(a, b, c, …)
- median(a, b, c, …)
- min(a, b, c, …)
- mode(a, b, c, …)
- prod(a, b, c, …)
- quantileSeq(A, prob[, sorted])
- std(a, b, c, …)
- sum(a, b, c, …)
- var(a, b, c, …)
Trigonometry
Last updated on