6.8.4 n-th root: root
The root command finds roots of numbers.
-
root takes two arguments:
n and a, numbers.
- root(n,a) returns the nth root of a (i.e.
a1/n). If a<0, the n-th root is a complex number with argument
2π/n.
Examples.
-
Input:
root(3,2)
Output:
- Input:
root(3,2.0)
Output:
- Input:
root(3,sqrt(2))
Output: