This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / polynomial / Polynomial

ABCMeta

numpy.polynomial.polynomial:Polynomial

source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/polynomial.py :1557

Signature

def   Polynomial ( coef domain = None window = None symbol = x )

Members

Summary

A power series class.

Extended Summary

The Polynomial class provides the standard Python numerical methods '+', '-', '', '//', '%', 'divmod', '*', and '()' as well as the attributes and methods listed below.

Parameters

coef : array_like

Polynomial coefficients in order of increasing degree, i.e., (1, 2, 3) give 1 + 2*x + 3*x**2.

domain : (2,) array_like, optional

Domain to use. The interval [domain[0], domain[1]] is mapped to the interval [window[0], window[1]] by shifting and scaling. The default value is [-1., 1.].

window : (2,) array_like, optional

Window, see domain for its use. The default value is [-1., 1.].

symbol : str, optional

Symbol used to represent the independent variable in string representations of the polynomial expression, e.g. for printing. The symbol must be a valid Python identifier. Default value is 'x'.

Aliases

  • numpy.polynomial.Polynomial

Referenced by