functionroots
Determine zeros of factorized polynomial
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | poly1 | [p^0] coefficients of first order polynomials | |
| Real[:,2] | poly2 | [p, p^0] coefficients of second order polynomials | |
| Integer | n_real | Number of real zeros computed with Internal.numberOfRealZeros |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[n_real] | realZeros | All real zeros of poly1 and poly2 | |
| Complex[:] | complexZeros | fill(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 |