Commands Reference

This is a complete overview of the math commands available for scripting in Algebrakit. Click a command for more information.

Constructs

Command Description
For For executes the script within the for-loop repeatedly for each element of a given list.
If If checks a condition and executes a script block based on the result.
While While checks the condition and executes the script block until the condition is False.

List Commands

Command Description
Concat Concat concatenates expressions or lists into a single list.
ConstantArray ConstantArray creates a list containing a number of copies of a given value.
Difference Difference creates a list containing the elements of the first list, where the elements from the second list are removed.
FindI FindI returns the first index where an expression appears in a list.
GetCommonBase GetCommonBase returns the common base of the expressions in a list.
Intersect Intersect returns the list of elements that occur in all given lists.
ImplicitList ImplicitList displays the arguments as a list without the curly braces normally shown when displaying as a list.
Length Length returns the length of a list.
Map Map applies a given function or mapping to each element of a given list.
MaxI MaxI returns the index of the maximum value in a list.
Mean Mean returns the mean of the values in a list.
RemoveI RemoveI returns a new list with all the elements at the given indices removed.
Shuffle Shuffle returns a copy of a list in a random order.
Sort Sort returns a copy of a list sorted in numerical order.
Tally Tally counts how often each element occurs in a list.

Math Commands

Command Description
CalcAbs CalcAbs returns the absolute value of an integer.
CalcDivision CalcDivision returns the division of two given integers.
CalcDivisors CalcDivisors returns all divisors of a number.
CalcGcd CalcGcd returns the greatest common divisor of a number.
CalcLcm CalcLcm returns the least common multiple of a number.
CalcPlus CalcPlus returns the sum of given values.
CalcPower CalcPower returns the exponentiation of two given integers.
CalcTimes CalcTimes returns the product of given values.
Ceil Ceil returns the smallest integer greater than or equal to a value.
DecimalToFraction DecimalToFraction returns the simplest fraction representing the given (decimal) value.
Denominator Denominator returns the denominator of a fraction.
EqualsEval EqualsEval checks if both expressions evaluate to the same expression.
ExponentialStandardForm ExponentialStandardForm returns the exponential standard form of an expression.
Factorial Factorial represents the factorial operator.
FactorInt FactorInt returns the prime factorisation of a number.
Floor Floor returns the largest integer less than or equal to a value.
IsMatch IsMatch checks if two expressions are equivalent in a mathematical way. In other words, a generalised way of checking for a certain equality.
LinearGeneralForm LinearGeneralForm returns the linear general form of an expression and given variable(s) in a list.
LinearStandardForm LinearStandardForm returns the linear standard form of an expression and given variable.
Negative Negative applies the minus operator to an expression.
Numerator Numerator returns the numerator of a fraction.
Numerical Numerical returns the approximate numerical value of an expression.
PolynomialDegree PolynomialDegree determines the degree of a polynomial.
Round Round rounds a value to the nearest integer.
RoundDown RoundDown rounds a number down to the nearest whole number.
RoundUp RoundUp rounds a number up to the nearest whole number.
Smaller Smaller represents the mathematical 'smaller than' relation.
SmallerEqual SmallerEqual represents the mathematical 'smaller than or equals' relation.
UnequalsEval UnequalsEval checks if two expressions do not evaluate to the same expression.

Randomisation Commands

Command Description
RandomInt RandomInt randomly selects one or more random integer numbers from a range.
RandomSample RandomSample randomly selects a sample of a size from a list.
RandomSelect RandomSelect randomly selects an expression from a list of expressions.
RandVars RandVars randomly selects a given number of variables.
Shuffle Shuffle returns a copy of a list in a random order.

Vectors

Command Description
BaseVector BaseVector represents the concept of a vector in basis form.
ComponentForm ComponentForm converts the vectors in an expression to component form.
Magnitude Magnitude returns the magnitude of a vector.
PolarForm PolarForm converts the vectors in an expression to polar form.
PolarVector PolarVector represents the concept of a vector in polar form.
Vector Vector represents the concept of a coordinate or vector.
VectorHarpoon VectorHarpoon represents one of the notations for a vector. The arrow represents right-pointing arrow notation or harpoons.

Miscellaneous

Command Description
Apply Apply replaces the first function of an expression with a different function.
FuncApplication FuncApplication evaluates a function for an input.
GenBasicFraction GenBasicFraction generates a list of n basic fractions. A basic fraction is a fraction with 1 in the numerator and a not-too-difficult integer in the denominator.
GenSimpleFraction GenSimpleFraction generates a list of n simple fractions.
MCEOption MCEOption defines a multiple-choice option.
OrderAs OrderAs orders the arguments of the first argument to relate as close as possible to the second argument.
Quantity Quantity represents the value with a unit (e.g. meters, euros, minutes).
RemoveFunction RemoveFunction removes all occurrences of a given function from an expression.
Strict Strict checks whether a condition strictly holds.
Substitute Substitute substitutes all occurrences of an expression with another given expression.
Simplify Simplify fully simplifies an expression, executing any Algebrakit instructions in the expression.
Type Type returns the type of an expression.