mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
3.8 KiB
3.8 KiB
Function reference (categorical)
arithmetic
- abs(x)
- add(x, y)
- 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)
- lcm(a, b)
- log(x [, base])
- log10(x)
- mod(x, y)
- multiply(x, y)
- norm(x [, p])
- nthRoot(a, root)
- 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)
complex
construction
- bignumber(x)
- boolean(x)
- chain(value)
- complex(re, im)
- index(range1, range2, ...)
- matrix(x)
- number(value)
- parser()
- string(value)
- unit(x)
expression
logical
matrix
- concat(a, b, c, ... [, dim])
- cross(x, y)
- det(x)
- diag(X)
- dot(x, y)
- eye(n)
- flatten(x)
- inv(x)
- ones(m, n, p, ...)
- range(start, end [, step])
- resize(x, size [, defaultValue])
- size(x)
- squeeze(x)
- subset(x, index [, replacement])
- trace(x)
- transpose(x)
- zeros(m, n, p, ...)
probability
- combinations(n, k)
- distribution(name)
- factorial(n)
- gamma(n)
- permutations(n)
- pickRandom(array)
- random([min, max])
- 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, ...)
- prod(a, b, c, ...)
- std(a, b, c, ...)
- sum(a, b, c, ...)
- var(a, b, c, ...)
trigonometry
- acos(x)
- acosh(x)
- acot(x)
- acoth(x)
- acsc(x)
- acsch(x)
- asec(x)
- asech(x)
- asin(x)
- asinh(x)
- atan(x)
- atan2(y, x)
- atanh(x)
- cos(x)
- cosh(x)
- cot(x)
- coth(x)
- csc(x)
- csch(x)
- sec(x)
- sech(x)
- sin(x)
- sinh(x)
- tan(x)
- tanh(x)