General

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

Comparing numbers

min() and max() in Soulver

larger of 100 and 200                                | 200
greater of 100 and 200                               | 200
                                                     
smaller of 5 and 10                                  | 5
lesser of 5 and 10                                   | 5

Remainders (mod)

remainder of 21 divided by 5                         | 1 
21 mod 5                                             | 1

Middles and halves

half of 175                                          | 87.5 
midpoint between 150 and 300                         | 225

Random numbers

To generate a random integer in a specified range:

random number between 1 and 10                      | 7

To generate a random floating point number, use the range 0 to 1

random number between 0 and 1                      | 0.4793193723

LCM & GCD

Lowest common multiple and greatest common divisor

gcd of 20 and 30                         | 10 
lcm of 5 and 8                           | 40

Permutations & Combinations

10 permutation 3                         | 720
25 combination 3                         | 2,300

Or alternatively use a slightly clearer syntax:

3 permutations of 10                     | 720
3 combinations of 25                     | 2,300

Clamp

clamp 26 between 5 and 25                | 25
clamp 4 from 5 to 25                     | 4

Operator Phrases

These phrases are synonymous with regular math operators:

30 plus 20                          | 50 
3,000 minus 12                      | 2,988
3 multiplied by 4                   | 12
1,000 divided by 200                | 5
3 to the power of 2                 | 9

Last updated

Was this helpful?