Math
| Name | Description | Example |
|---|---|---|
| max | Returns the maximum of n arguments | |
| min | Returns the minimum of n arguments | |
| avg | Returns the average of n numbers | |
| round | Returns closest integer | |
| floor | Returns largest preceding integer | |
| ceil | Returns smallest following integer | |
| abs | Returns non-negative value of the argument without regard to its sign | |
| sqrt | Returns the square root of the argument | |
| pow | Returns 𝑓𝑖𝑟𝑠𝑡_𝑎𝑟𝑔𝑢𝑚𝑒𝑛𝑡𝑠𝑒𝑐𝑜𝑛𝑑_𝑎𝑟𝑔𝑢𝑚𝑒𝑛𝑡 | |
| log | Returns the logarithm of the argument |
Max
Returns the maximum of n arguments.
Alternatively, if you provide a single set/array, it returns the maximum of its values.
The arguments must be comparable using >.
Definition
| Argument | Type |
|---|---|
| val1 |
|
| val2 |
|
| ... |
Example
Min
Alternatively, if you provide a single set/array, it returns the minimum of its values.
The arguments must be comparable using <.
Definition
| Argument | Type |
|---|---|
| val1 |
|
| val2 |
|
| ... |
Example
Avg
Alternatively, if you provide a single set/array of values, it returns the average of its values.
Definition
| Argument | Type |
|---|---|
| val1 |
|
| val2 |
|
| ... |
Example
Round
Definition
| Argument | Type | Meaning |
|---|---|---|
x |
| |
Return value |
| Integer closest to x |
Example
All the following expressions result in true:
Floor
Definition
| Argument | Type | Meaning |
|---|---|---|
x |
| |
Return value |
| Largest integer preceding x |
Example
All the following expressions result in true:
Ceil
Definition
| Argument | Type | Meaning |
|---|---|---|
x |
| |
Return value |
| Smallest integer following x |
Example
All the following expressions result in true:
Absolute Value
Definition
| Argument | Type | Meaning |
|---|---|---|
x |
| |
Return value |
| Non-negative value of x without regard to its sign |
Example
All the following expressions result in true:
Square Root
Definition
| Argument | Type | Meaning |
|---|---|---|
x | Non-negative | |
Return value |
| Number 𝑎, such that 𝑎2=𝑥 |
Example
All the following expressions result in true:
Power Function
Definition
| Argument | Type | Meaning |
|---|---|---|
base |
| |
exponent |
| |
Return value |
| Base raised to the power exponent (𝑏𝑎𝑠𝑒𝑒𝑥𝑝𝑜𝑛𝑒𝑛𝑡) |
Example
All the following expressions result in true:
Logarithm
Definition
| Argument | Type | Meaning |
|---|---|---|
x | Non-negative | |
base | Non-negative | Optional. Default base is decadic. |
Return value |
| Number 𝑦, such that 𝑏𝑎𝑠𝑒𝑦=𝑥 |
Example
All the following expressions result in true: