Root

Syntax

1
sqrt x
2
cbrt x
3
x root y
Copied!

Explanation

sqrt/cbrt

sqrt and cbrt, find the square root and the cube root of the given operand respectively. They are aliases of x root 2 and x root 3. There is minimal speed different, if any, and are simply exist for clearer code.

root

root finds the
nthn^{th}
root of x (
xn\sqrt[n]{x}
), where
n=yn = y
. It is equivilent to x ** y ** -1

Examples

1
sqrt 16 // 4
2
cbrt 8 // 2
3
16 root 4 // 2
Copied!
Last modified 1yr ago