fitting.poly

fitting.poly(x, *coeffs)

A general polynomial.

Parameters:
  • x (array) – x-values.
  • coeffs (variable) – Sequence of polynomial terms k in increasing order.
Returns:

f(x) = \sum_i k_i x^i.

Example:

# a third order polynomial
y = poly(x, 0, 1, 2, 3)

# which is the same as 
y = cubic(x, 0, 1, 2, 3)