roots

Compute the roots of a polynomial.

Syntax

r = roots(v)

Inputs

v
A real vector.
Dimension: vector

Outputs

r
The roots of the polynomial.

Example

r = roots([1,-9,26,-24])
r = [Matrix] 3 x 1
4.00000
3.00000
2.00000