This is a complete overview of the mathematical functions and constants available for scripting in Algebrakit.
Booleans
| Name |
Description |
in |
out |
And |
And[ expr1, expr2, ... ] returns the logical conjunction of all expressions expr1, expr2, .... If its result is indeterminate, it returns And[expri, exprj,…] with indeterminate expressions expri, exprj,... instead. |
And[True, False] |
False |
Or |
Or[expr1, expr2, ... ] returns the logical disjunction of expr1, expr2, .... If its result is indeterminate, it returns Or[expri, exprj,…] with indeterminate expressions expri, exprj,... instead. |
Or[ True, False ] |
True |
Not |
Not[ expr ] returns the logical negation of expr. If expr is indeterminate, it returns Not expr |
Not[ True ] |
False |
Constants
| Name |
Description |
in |
out |
rendered |
reduced |
EulerE |
EulerE represents Euler's constant, "e". |
Ln[ EulerE^3 ] |
|
|
3 |
Infinity |
Infinity represents the mathematical concept of infinity. |
Infinity |
|
|
∞ |
MinusInfinity |
MinusInfinity represents the mathematical concept of minus infinity. |
MinusInfinity |
|
|
-∞ |
NaN |
NaN represents the result of an undefined mathematical operation. NaN stands for Not a Number. |
2/0 |
NaN |
no solution |
|
Pi |
Pi represents the mathematical constant pi, π. |
Sin[Pi] |
|
|
0 |
Logarithms
| Name |
Description |
in |
reduced |
Log |
Log[ n1, n2 ] represents the logarithm of n1 in base n2. Ifn2 is left out, the function returns the logarithm with base 10 by default. |
log[ 16, 2 ] |
4 |
Ln |
Ln[ expr ] represents the mathematical absolute value function with argument expr. Reduces to the natural number n if the expression evaluates to Ln[e^n]. If an expression evaluates to a value less than or equal to 0, ln will reduce to False and render as no solution. Otherwise, the expression remains the same as the input. |
Ln[ EulerE^3 ] |
3 |
Trigonometry
Basic
| Name |
Description |
in |
reduced |
Sin |
Sin[ expr ] represents the mathematical sine function as argument an expression expr. For the default radian values, the sine reduces to the corresponding value. Otherwise, it will remain unchanged from the input. |
Sin[Pi] |
0 |
Cos |
Cos[ expr ] represents the mathematical cosine function with the expression expr as its argument. For the default radian values, the cosine reduces to the corresponding value. Otherwise, it will remain unchanged from the input. |
Cos[Pi] |
-1 |
Tan |
Tan[ expr ] represents the mathematical tangent function on an expression expr. For the default radian values, the tangent reduces to the corresponding value. Otherwise, it will remain unchanged from the input. |
Tan[0] |
0 |
Inverse
| Name |
Description |
in |
reduced |
ArcSin |
ArcSin[ expr ] represents the inverse sine function on an expression expr. The Arcsine will reduce to a radian value if the outcome is one of the default radian values. If expr < -1 or expr > 1 the Arcsine will reduce to False and render as no solution. Otherwise, it will remain unchanged from the input. |
ArcSin[1] |
1/2 π |
ArcCos |
ArcCos[ expr ] represents the inverse cosine function with as argument an expression expr. The Arccosine will reduce to a radian value if the outcome is one of the default radian values. If expr < 0 or expr > 1 the Arccosine will reduce to False and render as no solution. Otherwise, it will remain unchanged from the input. |
ArcCos[0] |
1/2 π |
ArcTan |
ArcTan[ expr ] represents the inverse tangent function with as argument an expression expr. The Arctangent will reduce to a radian value if the outcome is one of the default radian values. Otherwise, it will remain unchanged from the input. |
ArcTan[1] |
1/4 π |
Inverse Hyperbolic
| Name |
Description |
in |
reduced |
ArcSinh |
Arcsinh[ expr ] represents the inverse hyperbolic sine function with as argument an expression expr. |
Arcsinh[0] |
0 |
ArcCosh |
Arccosh[ expr ] represents the inverse hyperbolic cosine function with as argument an expression expr. If expr < 1 the Arccosine hyperbolicus will reduce to False and render as no solution. |
ArcCos[1] |
0 |
ArcTanh |
Arctanh[ expr ] represents the inverse hyperbolic tangent function with as argument an expression expr. If expr <= -1 or expr >= 1 the Arctangent hyperbolicus will reduce to False and render as no solution. |
Arctanh[0] |
0 |
Reciprocal
| Name |
Description |
in |
reduced |
Cot |
Cot[ expr ] represents the mathematical cotangent function with as argument an expression expr. For the default radian values, the cotangent reduces to the corresponding value. Otherwise, it will remain unchanged from the input. |
Cot[1/4 pi] |
1 |
Csc |
Csc[ expr ] represents the mathematical cosecant function with as argument an expression expr. For the default radian values, the cosecant reduces to the corresponding value. Otherwise, it will remain unchanged from the input. |
Csc[1/2 pi] |
1 |
Miscellaneous
| Name |
Description |
in |
out |
rendered |
reduced |
Abs |
Abs[ expr ] represents the mathematical absolute value function with argument expr. |
Abs[ -4 ] |
|
|
4 |
Max |
Max[ list ] returns the element with the largest value in list. |
Max[ {3,2,1} ] |
3 |
|
|
Min |
Min[ list ] returns the element with the smallest value in list. |
Min[ {3,2,1} ] |
1 |
|
|
Mod |
Mod[ n1, n2 ] returns the modulus of n1 and n2. |
Mod[ 8,2 ] |
0 |
|
|
Combination |
Combination[ n1, n2 ] returns the number of possible combinations of n2 items from a collection of size n1. Note that the ordering of items does not matter. |
Combination[7,2] |
|
(7 above 2) |
21 |
Gcd |
Gcd[ n1, n2, ... ] returns the greatest common divisor of expressions expr1, expr2, .... You commonly use it to instruct the student to find the greatest common divisor of a set of numbers, or to simplify fractions. The rendering of this function depends on the language set for the audience. |
Gcd[ 5,15 ] |
|
|
5 |
Lcm |
Lcm[ n1, n2, ... ] returns the least common multiple of expressions expr1, expr2, .... You commonly use it to instruct the student to find the least common multiple of a set of numbers, or to find the new denominator when combining fractions. The rendering of this function depends on the language set for the audience. |
Lcm[ 2,3 ] |
|
|
6 |