%: y Square Root
The square root of y .
%: 49 7
Can lead to neater tacit expressions than using (y^0.5).
x %: y Root
The x-th root of y .
2 %: 49 NB. square-root 7 3 %: 49 NB. cube-root 3.65931
Can lead to neater tacit expressions than using (y^%x).
1. %: y and x %: y return the principal value of the root, which is defined as ^ (^. y) % x
The logarithm (^.) is in turn defined to use the angle in the range: (-π, π]
A consequence of this definition is that all roots of negative numbers are complex, even cube roots:
3 %: _1 0.5j0.866025
2. Taking an integer root of an extended integer by an integer (extended or not) produces an extended integer if the quotient is an integer, or floating-point otherwise.