[TOC]

roots

Polynomial Roots

Usage

roots(p)

Examples

Input
roots([0.5 0.5 1 2 3 7 8])
Output
ans =
  1.138 + 1.345i
  1.138 - 1.345i
 -0.335 + 1.605i
 -0.335 - 1.605i
 -1.303 + 0.469i
 -1.303 - 0.469i
Input
roots([0 0 1+i 2 3+0.5i])
Output
ans =
 -0.223 + 1.852i
 -0.777 - 0.852i