Function Reference
— Function File: roots (v)

For a vector v with N components, return the roots of the polynomial

          v(1) * z^(N-1) + ... + v(N-1) * z + v(N)

As an example, the following code finds the roots of the quadratic polynomial

          p(x) = x^2 - 5.
          c = [1, 0, -5];
          roots(c)
            2.2361
           -2.2361

Note that the true result is +/- sqrt(5) which is roughly +/- 2.2361.

See also: compan