functionroots

Determine zeros of factorized polynomial

Inputs

TypeNameDefaultDescription
Real[:]poly1[p^0] coefficients of first order polynomials
Real[:,2]poly2[p, p^0] coefficients of second order polynomials
Integern_realNumber of real zeros computed with Internal.numberOfRealZeros

Outputs

TypeNameDefaultDescription
Real[n_real]realZerosAll real zeros of poly1 and poly2
Complex[:]complexZerosfill(Complex(0, 0), integer((size(poly1, 1) + 2*size(poly2, 1) - n_real)/2))All complex zeros of poly1 and poly2; for a complex conjugate pair, only one zero is stored