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
| Type | Name | Default | Description |
|---|---|---|---|
| Polynomial | p | Polynomial | |
| Boolean | printRoots | false | True, if roots shall be pretty printed |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Complex[:] | result | fill(Complex(0, 0), Polynomial.numberOfRoots(p)) | Roots of polynomial |