For the complete documentation index, see llms.txt. This page is also available as Markdown.

Logarithms & Roots

Square & Cubed Root

Function
Name
Behaviour

sqrt()

Square Root

Returns the square root of a number (also √)

cbrt()

Cube Root

Returns the cube root of a number

sqrt(16)          | 4
cbrt(343)         | 7

square root of 81 | 9
cube root of 27   | 3

Nth root

root 5 of 100 | 2.5118864315

Logarithms

Function
Name
Behaviour

exp()

Exponential

Calculates the value of e to the power of x, where e is the base of the natural logarithm. exp(1) returns Euler's number.

ln()

Natural logarithm

The natural logarithm of a number is its logarithm to the base of the mathematical constant e.

log2()

Base 2 logarithm

Calculate the base 2 logarithm of a value

log(), log10()

Base 10 logarithm

Calculate the base 10 logarithm of a value

Log to any base

log 20 base 4 | 2.1609640474

You can also use more natural phrases for this operation:

Factorial & Absolute Value

Function
Name
Behaviour

abs()

Absolute value

Returns the absolute value of a number (i.e makes a negative number positive)

fact()

Factorial

Returns the factorial of a given number.

Last updated