numpy.polynomial.polynomial.polyroots()

numpy.polynomial.polynomial.polyroots

numpy.polynomial.polynomial.polyroots(c) [source]

Compute the roots of a polynomial.

Return the roots (a.k.a. “zeros”) of the polynomial

p(x) = \sum_i c[i] * x^i.

Parameters:

c : 1-D array_like