Finds the roots of a polynomial. |
|||
Syntax |
r = PolyRoots(c) |
||
Argument |
Name |
Description |
|
c |
A vector of polynomial coefficients in descending order of power. Must be of length greater than one. |
||
Output |
Name |
Description |
|
r |
The roots of the polynomial. Both real and complex roots are computed. |
||
Example |
Find the roots of x2 – 3x + 2 = 0 |
||
Syntax |
|||
|
|||
Result |
|||
R = 2.0 1.0 |
|||
See Also: |