functionrootsOfNonZeroHighestCoefficientPolynomial
Determine zeros of polynomial where highest coefficient of polynomial is not zero
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Polynomial | p | Polynomial | |
| Integer | numberOfRoots | Number of roots of polynomial |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Complex[:] | result | fill(Complex(0, 0), numberOfRoots) | Roots of polynomial |