Polynomials

Basics

poly1d A one-dimensional polynomial class.
polyval (p, x) Evaluate a polynomial at specific values.
poly (seq_of_zeros) Return polynomial coefficients given a sequence of roots.
roots (p) Return the roots of a polynomial with coefficients given in p.

Fitting

polyfit (x, y, deg[, rcond, full]) Least squares polynomial fit.

Calculus

polyder (p[, m]) Return the derivative of the specified order of a polynomial.
polyint (p[, m, k]) Return an antiderivative (indefinite integral) of a polynomial.

Arithmetic

polyadd (a1, a2) Returns sum of two polynomials.
polydiv (u, v) Returns the quotient and remainder of polynomial division.
polymul (a1, a2) Returns product of two polynomials represented as sequences.
polysub (a1, a2) Returns difference from subtraction of two polynomials input as sequences.

Warnings

RankWarning Issued by polyfit when Vandermonde matrix is rank deficient.