Skip to main content

Module polynomial

Module polynomial 

Source
Expand description

Polynomial evaluation and root finding.

Functions§

eval_polynomial
Evaluate a polynomial at z via Horner’s scheme.
polynomial_roots
Find all roots of a polynomial using the Durand–Kerner (Weierstrass) method. coeffs are ordered coeffs[0] + coeffs[1]·z + …, and the leading coefficient must be non-zero.