Examples.
Input:
Find the numeric roots of
P
(
x
)=
x
3
+1:
Input:
proot([1,0,0,1])
or:
proot(x^3+1)
Output:
⎡
⎣
−1.0,0.5−0.866025403784
i
,0.5+0.866025403784
i
⎤
⎦
Find the numeric roots of
x
2
−3:
Input:
proot([1,0,-3])
or:
proot(x^2-3)
Output:
⎡
⎣
−1.73205080757,1.73205080757
⎤
⎦