functionroots

Determine zeros of polynomial, i.e., points x with p(x)=0

Information

The roots of the given polynomial are determined and are returned as a vector of Complex elements.

Inputs

TypeNameDefaultDescription
PolynomialpPolynomial
BooleanprintRootsfalseTrue, if roots shall be pretty printed

Outputs

TypeNameDefaultDescription
Complex[:]resultfill(Complex(0, 0), Polynomial.numberOfRoots(p))Roots of polynomial