abs |
Arithmetic |
Compute the absolute value. |
acos |
Trigonometry |
Compute the inverse cosine of a value in radians. |
acosh |
Trigonometry |
Calculate the hyperbolic arccos of a value, defined as acosh(x) = ln(sqrt(x^2 - 1) + x). |
acot |
Trigonometry |
Calculate the inverse cotangent of a value. |
acoth |
Trigonometry |
Calculate the inverse hyperbolic tangent of a value, defined as acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2. |
acsc |
Trigonometry |
Calculate the inverse cotangent of a value. |
acsch |
Trigonometry |
Calculate the inverse hyperbolic cosecant of a value, defined as acsch(x) = ln(1/x + sqrt(1/x^2 + 1)). |
add |
Operators |
Add two values. |
addScalar |
Arithmetic |
Add two scalar values. |
and |
Logical |
Logical and. Test whether two values are both defined with a nonzero/nonempty value. |
apply |
Matrix |
Reduce slices of a matrix using a callback. |
arg |
Complex |
Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a). |
asec |
Trigonometry |
Calculate the inverse secant of a value. |
asech |
Trigonometry |
Calculate the inverse secant of a value. |
asin |
Trigonometry |
Compute the inverse sine of a value in radians. |
asinh |
Trigonometry |
Calculate the hyperbolic arcsine of a value, defined as asinh(x) = ln(x + sqrt(x^2 + 1)). |
atan |
Trigonometry |
Compute the inverse tangent of a value in radians. |
atan2 |
Trigonometry |
Computes the principal value of the arc tangent of y/x in radians. |
atanh |
Trigonometry |
Calculate the hyperbolic arctangent of a value, defined as atanh(x) = ln((1 + x)/(1 - x)) / 2. |
barChart |
Plotting and display |
Draw a bar chart from numeric data. |
bellNumbers |
Combinatorics |
The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. bellNumbers only takes integer arguments. The following condition must be enforced: n >= 0. |
bernoulli |
Probability |
The nth Bernoulli number |
bigint |
Construction |
Create a bigint, an integer with an arbitrary number of digits, from a number or string. |
bignumber |
Construction |
Create a big number from a number or string. |
bin |
Utils |
Format a number as binary |
bitAnd |
Bitwise |
Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0 |
bitNot |
Bitwise |
Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0. |
bitOr |
Bitwise |
Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0. |
bitXor |
Bitwise |
Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1. |
boolean |
Construction |
Convert a string or number into a boolean. |
catalan |
Combinatorics |
The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0. |
cbrt |
Arithmetic |
Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When x is a number or complex number, an optional second argument allRoots can be provided to return all three cubic roots. If not provided, the principal root is returned |
ceil |
Arithmetic |
Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity. |
chain |
Expression |
Build a chain of calculations. |
circle |
Plotting and display |
Draw a circle with a center and a radius. |
clear |
REPL |
Clear the REPL session. |
clone |
Utils |
Clone a variable. Creates a copy of primitive variables, and a deep copy of matrices |
coeffs |
Algebra and calculus |
Read the coefficients of a polynomial. |
column |
Matrix |
Return a column from a matrix or array. |
combinations |
Probability |
Compute the number of combinations of n items taken k at a time |
combinationsWithRep |
Probability |
Compute the number of combinations of n items taken k at a time with replacements. |
compare |
Relational |
Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y. |
compareNatural |
Relational |
Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y. |
compareText |
Relational |
Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y. |
compile |
Expression |
Parse and compile an expression. Returns a an object with a function evaluate([scope]) to evaluate the compiled expression. |
completeSquare |
Algebra and calculus |
Rewrite a quadratic by completing the square. |
complex |
Construction |
Create a complex number. |
composition |
Combinatorics |
The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n. |
concat |
Matrix |
Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument. |
conj |
Complex |
Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi. |
corr |
Statistics |
Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated. |
cos |
Trigonometry |
Compute the cosine of x in radians. |
cosh |
Trigonometry |
Compute the hyperbolic cosine of x in radians. |
cot |
Trigonometry |
Compute the cotangent of x in radians. Defined as 1/tan(x) |
coth |
Trigonometry |
Compute the hyperbolic cotangent of x in radians. |
count |
Matrix |
Count the number of elements of a matrix, array or string. |
createUnit |
Units |
Create a user-defined unit and register it with the Unit type. |
cross |
Matrix |
Calculate the cross product for two vectors in three dimensional space. |
csc |
Trigonometry |
Compute the cosecant of x in radians. Defined as 1/sin(x) |
csch |
Trigonometry |
Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x) |
ctranspose |
Matrix |
Complex Conjugate and Transpose a matrix |
cube |
Arithmetic |
Compute the cube of a value. The cube of x is x * x * x. |
cumsum |
Statistics |
Compute the cumulative sum of all values. |
deepEqual |
Relational |
Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal. |
defint |
Algebra and calculus |
Evaluate a definite integral between two bounds. |
degree |
Algebra and calculus |
Find the degree of a polynomial. |
den |
Fraction |
Get the denominator of a fraction. |
derivative |
Algebra and calculus |
Differentiate an expression symbolically. |
det |
Matrix |
Calculate the determinant of a matrix |
diag |
Matrix |
Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal. |
diff |
Algebra and calculus |
Differentiate an expression symbolically. |
distance |
Geometry |
Calculates the Euclidean distance between two points. |
divide |
Operators |
Divide two values. |
divideScalar |
Arithmetic |
Divide one scalar by another. |
dot |
Matrix |
Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn |
dotDivide |
Operators |
Divide two values element wise. |
dotMultiply |
Operators |
Multiply two values element wise. |
dotPow |
Operators |
Calculates the power of x to y element wise. |
eigs |
Matrix |
Calculate the eigenvalues and optionally eigenvectors of a square matrix |
ellipse |
Plotting and display |
Draw an axis-aligned ellipse with a center and two radii. |
endOf |
Date and time |
The last millisecond of a calendar period, as epoch milliseconds. |
equal |
Relational |
Check equality of two values. Returns true if the values are equal, and false if not. |
equalScalar |
Arithmetic |
Test equality of two scalar values. |
equalText |
Relational |
Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not. |
erf |
Special |
Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x |
evaluate |
Expression |
Evaluate an expression or an array with expressions. |
exp |
Arithmetic |
Calculate the exponent of a value. |
expand |
Algebra and calculus |
Expand products and powers in an expression. |
expm |
Arithmetic |
Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation. |
expm1 |
Arithmetic |
Calculate the value of subtracting 1 from the exponential value. |
factor |
Algebra and calculus |
Factor a symbolic expression. |
factorial |
Probability |
Compute the factorial of a value |
fft |
Matrix |
Calculate N-dimensional Fourier transform |
filter |
Matrix |
Filter items in a matrix. |
fix |
Arithmetic |
Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero. |
flatten |
Matrix |
Flatten a multi dimensional matrix into a single dimensional matrix. |
floor |
Arithmetic |
Round a value towards minus infinity. If x is complex, both real and imaginary part are rounded towards minus infinity. |
forEach |
Matrix |
Iterates over all elements of a matrix/array, and executes the given callback function. |
format |
Utils |
Format a value of any type as string. |
formatDateTime |
Date and time |
Render an instant in a named date and/or time format. |
formatTime |
Date and time |
Compatibility alias of formatDateTime: render an instant in a named time format. |
fraction |
Construction |
Create a fraction from a number or from integer numerator and denominator. |
freqz |
Signal |
Calculates the frequency response of a filter given its numerator and denominator coefficients. |
gamma |
Probability |
Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation. |
gcd |
Arithmetic |
Compute the greatest common divisor. |
getMatrixDataType |
Matrix |
Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed". |
hasNumericValue |
Utils |
Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value. |
hex |
Utils |
Format a number as hexadecimal |
hexagon |
Plotting and display |
Draw a centered regular hexagon. |
histogram |
Plotting and display |
Group numeric data into histogram bins. |
history |
REPL |
Recall saved REPL submissions. |
hypot |
Arithmetic |
Calculate the hypotenuse of a list with values. |
identity |
Matrix |
Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere. |
ifft |
Matrix |
Calculate N-dimensional inverse Fourier transform |
im |
Complex |
Get the imaginary part of a complex number. |
index |
Construction |
Create an index to get or replace a subset of a matrix |
integrate |
Algebra and calculus |
Find an indefinite symbolic integral. |
intersect |
Geometry |
Computes the intersection point of lines and/or planes. |
inv |
Matrix |
Calculate the inverse of a matrix |
inverseLaplace |
Algebra and calculus |
Compute an inverse Laplace transform. |
invmod |
Arithmetic |
Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b) |
isBounded |
Utils |
Test whether a value or its entries are bounded. |
isFinite |
Utils |
Test whether a value is finite, elementwise on collections. |
isInteger |
Utils |
Test whether a value is an integer number. |
isNaN |
Utils |
Test whether a value is NaN (not a number) |
isNegative |
Utils |
Test whether a value is negative: smaller than zero. |
isNumeric |
Utils |
Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean. |
isPositive |
Utils |
Test whether a value is positive: larger than zero. |
isPrime |
Utils |
Test whether a value is prime: has no divisors other than itself and one. |
isZero |
Utils |
Test whether a value is zero. |
kldivergence |
Probability |
Calculate the Kullback-Leibler (KL) divergence between two distributions. |
kron |
Matrix |
Calculates the Kronecker product of 2 matrices or vectors. |
laplace |
Algebra and calculus |
Compute a Laplace transform. |
larger |
Relational |
Check if value x is larger than y. Returns true if x is larger than y, and false if not. Comparing a value with NaN returns false. |
largerEq |
Relational |
Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not. |
latex |
Plotting and display |
Render a LaTeX string as mathematics. |
lcm |
Arithmetic |
Compute the least common multiple. |
leafCount |
Algebra |
Computes the number of leaves in the parse tree of the given expression |
leftShift |
Bitwise |
Bitwise left logical shift of a value x by y number of bits. |
lgamma |
Probability |
Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers. |
limit |
Algebra and calculus |
Find the limit of an expression at a point. |
line |
Plotting and display |
Draw an infinite line through two distinct points. |
log |
Arithmetic |
Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base). |
log10 |
Arithmetic |
Compute the 10-base logarithm of a value. |
log1p |
Arithmetic |
Calculate the logarithm of a value+1 |
log2 |
Arithmetic |
Calculate the 2-base of a value. This is the same as calculating log(x, 2). |
lsolve |
Algebra |
Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector. |
lsolveAll |
Algebra |
Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector. |
lup |
Algebra |
Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U |
lusolve |
Algebra |
Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector. |
lyap |
Algebra |
Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P |
mad |
Statistics |
Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median. |
map |
Matrix |
Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array or the matrices/arrays. |
mapSlices |
Matrix |
Generate a matrix one dimension less than A by applying callback to each slice of A along dimension dim. |
matrix |
Construction |
Create a matrix. |
matrixFromColumns |
Matrix |
Create a dense matrix from vectors as individual columns. |
matrixFromFunction |
Matrix |
Create a matrix by evaluating a generating function at each index. |
matrixFromRows |
Matrix |
Create a dense matrix from vectors as individual rows. |
max |
Statistics |
Compute the maximum value of a list of values. If any NaN values are found, the function yields the last NaN in the input. |
mean |
Statistics |
Compute the arithmetic mean of a list of values. |
median |
Statistics |
Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned. |
min |
Statistics |
Compute the minimum value of a list of values. If any NaN values are found, the function yields the last NaN in the input. |
mod |
Operators |
Calculates the modulus, the remainder of an integer division. |
mode |
Statistics |
Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array. |
multinomial |
Probability |
Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from n possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0. |
multiply |
Operators |
multiply two values. |
multiplyScalar |
Arithmetic |
Multiply two scalar values. |
norm |
Arithmetic |
Calculate the norm of a number, vector or matrix. |
not |
Logical |
Logical not. Flips the boolean value of given argument. |
now |
Date and time |
The current instant as epoch milliseconds. |
nthRoot |
Arithmetic |
Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A". |
nthRoots |
Arithmetic |
Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values. |
nullish |
Logical |
Nullish coalescing operator. Returns the right-hand operand when the left-hand operand is null or undefined, and otherwise returns the left-hand operand. |
num |
Fraction |
Get the numerator of a fraction. |
number |
Construction |
Create a number or convert a string or boolean into a number. |
oct |
Utils |
Format a number as octal |
ones |
Matrix |
Create a matrix containing ones. |
or |
Logical |
Logical or. Test if at least one value is defined with a nonzero/nonempty value. |
parse |
Expression |
Parse an expression. Returns a node tree, which can be evaluated by invoking node.evaluate() or transformed into a functional object via node.compile(). |
parseDateTime |
Date and time |
Parse a date-like value into epoch milliseconds. |
parser |
Expression |
Create a parser object that keeps a context of variables and their values, allowing the evaluation of expressions in that context. |
partfrac |
Algebra and calculus |
Decompose a rational expression into partial fractions. |
partitionSelect |
Matrix |
Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect. |
pentagon |
Plotting and display |
Draw a centered regular pentagon. |
permutations |
Probability |
Compute the number of permutations of n items taken k at a time |
pfactor |
Algebra and calculus |
Factor a positive integer into its prime factors. |
pickRandom |
Probability |
Pick a random entry from a given array. |
pinv |
Matrix |
Calculate the Moore–Penrose inverse of a matrix |
plot |
Plotting and display |
Draw functions, parametric/polar curves, points, or data series. |
polydiv |
Algebra and calculus |
Divide one polynomial by another. |
polygon |
Plotting and display |
Draw a polygon through the authored vertices. |
polyline |
Plotting and display |
Draw an open path through the authored vertices. |
polynomialRoot |
Algebra |
Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree. |
pow |
Operators |
Calculates the power of x to y, x^y. |
print |
Utils |
Interpolate values into a string template. |
prod |
Algebra and calculus |
Evaluate a symbolic finite product. |
product |
Algebra and calculus |
Evaluate a symbolic finite product. |
qr |
Algebra |
Calculates the Matrix QR decomposition. Matrix A is decomposed in two matrices (Q, R) where Q is an orthogonal matrix and R is an upper triangular matrix. |
quantileSeq |
Statistics |
Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probability are: Number, BigNumber. In case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated. |
random |
Probability |
Return a random number. |
randomInt |
Probability |
Return a random integer number |
range |
Type |
Create a range. Lower bound of the range is included, upper bound is excluded. |
rationalize |
Algebra |
Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator. |
ray |
Plotting and display |
Draw a half-line starting at one point and passing through another. |
re |
Complex |
Get the real part of a complex number. |
rectangle |
Plotting and display |
Draw a centered, axis-aligned rectangle. |
regularPolygon |
Plotting and display |
Draw a regular polygon on a circumcircle. |
reshape |
Matrix |
Reshape a multi dimensional array to fit the specified dimensions. |
resolve |
Algebra |
Recursively substitute variables in an expression tree. |
rightArithShift |
Bitwise |
Bitwise right arithmetic shift of a value x by y number of bits. |
rightLogShift |
Bitwise |
Bitwise right logical shift of a value x by y number of bits. |
roots |
Algebra and calculus |
Find roots of a polynomial symbolically. |
rotate |
Matrix |
Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis. |
rotationMatrix |
Matrix |
Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis. |
round |
Arithmetic |
round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals. |
row |
Matrix |
Return a row from a matrix or array. |
schur |
Algebra |
Performs a real Schur decomposition of the real matrix A = UTU' |
sec |
Trigonometry |
Compute the secant of x in radians. Defined as 1/cos(x) |
sech |
Trigonometry |
Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x) |
segment |
Plotting and display |
Draw a finite segment between two points. |
setCartesian |
Set |
Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation. |
setDifference |
Set |
Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation. |
setDistinct |
Set |
Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation. |
setIntersect |
Set |
Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation. |
setIsSubset |
Set |
Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation. |
setMultiplicity |
Set |
Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation. |
setPowerset |
Set |
Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation. |
setSize |
Set |
Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation. |
setSymDifference |
Set |
Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation. |
setUnion |
Set |
Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation. |
sign |
Arithmetic |
Compute the sign of a value. The sign of a value x is 1 when x>0, -1 when x<0, and 0 when x=0. |
simplify |
Algebra and calculus |
Simplify a numeric or symbolic expression. |
simplifyConstant |
Algebra |
Replace constant subexpressions of node with their values. |
simplifyCore |
Algebra |
Perform simple one-pass simplifications on an expression tree. |
sin |
Trigonometry |
Compute the sine of x in radians. |
sinh |
Trigonometry |
Compute the hyperbolic sine of x in radians. |
size |
Matrix |
Calculate the size of a matrix. |
slu |
Algebra |
Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U |
smaller |
Relational |
Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not. Comparing a value with NaN returns false. |
smallerEq |
Relational |
Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not. |
solve |
Algebra and calculus |
Find solutions of an algebraic equation. |
solveEquations |
Algebra and calculus |
Solve a system of simultaneous equations. |
solveFor |
Algebra and calculus |
Rearrange an equation to isolate a variable. |
solveODE |
Numeric |
Numerical Integration of Ordinary Differential Equations. |
sort |
Matrix |
Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function. |
sparse |
Construction |
Create a sparse matrix. |
splitUnit |
Construction |
Split a unit in an array of units whose sum is equal to the original unit. |
sqrt |
Arithmetic |
Compute the square root value. If x = y * y, then y is the square root of x. |
sqrtm |
Arithmetic |
Calculate the principal square root of a square matrix. The principal square root matrix X of another matrix A is such that X * X = A. |
square |
Arithmetic |
Compute the square of a value. The square of x is x * x. |
squeeze |
Matrix |
Remove inner and outer singleton dimensions from a matrix. |
startOf |
Date and time |
The start of a calendar period, as epoch milliseconds. |
std |
Statistics |
Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased". |
stirlingS2 |
Combinatorics |
The Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. stirlingS2 only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1. |
string |
Construction |
Create a string or convert a value to a string |
sub |
Algebra and calculus |
Substitute a value or expression for a variable. |
subset |
Matrix |
Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation l:u. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation. |
subtract |
Operators |
subtract two values. |
subtractScalar |
Arithmetic |
Subtract one scalar from another. |
sum |
Statistics |
Compute the sum of all values. |
summation |
Algebra and calculus |
Evaluate a symbolic finite sum. |
sylvester |
Algebra |
Solves the real-valued Sylvester equation AX+XB=C for X |
symbolicEqual |
Algebra |
Returns true if the difference of the expressions simplifies to 0 |
tan |
Trigonometry |
Compute the tangent of x in radians. |
tanh |
Trigonometry |
Compute the hyperbolic tangent of x in radians. |
tex |
Plotting and display |
Render an expression as typeset mathematics. |
timezones |
Date and time |
The names of the available IANA time zones. |
to |
Units |
Change the unit of a value. |
toBest |
Units |
Converts to the most appropriate display unit. |
toEpoch |
Date and time |
Compatibility alias of parseDateTime: parse a date-like value into epoch milliseconds. |
toTex |
Plotting and display |
Return the LaTeX source of an expression. |
trace |
Matrix |
Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix. |
transpose |
Matrix |
Transpose a matrix |
triangle |
Plotting and display |
Draw a triangle through three points. |
typeOf |
Utils |
Get the type of a variable. |
unaryMinus |
Operators |
Inverse the sign of a value. Converts booleans and strings to numbers. |
unaryPlus |
Operators |
Converts booleans and strings to numbers. |
unequal |
Relational |
Check unequality of two values. Returns true if the values are unequal, and false if they are equal. |
unit |
Construction |
Create a unit. |
usolve |
Algebra |
Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector. |
usolveAll |
Algebra |
Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector. |
variance |
Statistics |
Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased". |
xgcd |
Arithmetic |
Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b. |
xor |
Logical |
Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value. |
zeros |
Matrix |
Create a matrix containing zeros. |
zeta |
Special |
Compute the Riemann Zeta Function using an infinite series and Riemann's Functional Equation for the entire complex plane |
zpk2tf |
Signal |
Compute the transfer function of a zero-pole-gain model. |