7.3.4
n
th root
The
root
command finds roots of numbers.
root
takes two arguments:
n
and
a
, numbers.
root(
n
,
a
)
returns the
n
th root of
a
(i.e.
a
1/
n
). If
a
<0, the
n
th root is a complex number with argument 2π/
n
.
Examples
root
(3,2)
2
1
3
root
(3,2.0)
1.25992104989
root
(3,
sqrt
(2))
2
1
6