class numpy.polynomial.polynomial.Polynomial(coef, domain=None, window=None) [source]
A power series class.
The Polynomial class provides the standard Python numerical methods ‘+’, ‘-‘, ‘*’, ‘//’, ‘%’, ‘divmod’, ‘**’, and ‘()’ as well as the attributes and methods listed in the ABCPolyBase documentation.
| Parameters: |
|
|---|---|
| Attributes: |
|
__call__(self, arg) | Call self as a function. |
basis(deg[, domain, window]) | Series basis polynomial of degree deg. |
cast(series[, domain, window]) | Convert series to series of this class. |
convert(self[, domain, kind, window]) | Convert series to a different kind and/or domain and/or window. |
copy(self) | Return a copy. |
cutdeg(self, deg) | Truncate series to the given degree. |
degree(self) | The degree of the series. |
deriv(self[, m]) | Differentiate. |
fit(x, y, deg[, domain, rcond, full, w, window]) | Least squares fit to data. |
fromroots(roots[, domain, window]) | Return series instance that has the specified roots. |
has_samecoef(self, other) | Check if coefficients match. |
has_samedomain(self, other) | Check if domains match. |
has_sametype(self, other) | Check if types match. |
has_samewindow(self, other) | Check if windows match. |
identity([domain, window]) | Identity function. |
integ(self[, m, k, lbnd]) | Integrate. |
linspace(self[, n, domain]) | Return x, y values at equally spaced points in domain. |
mapparms(self) | Return the mapping parameters. |
roots(self) | Return the roots of the series polynomial. |
trim(self[, tol]) | Remove trailing coefficients |
truncate(self, size) | Truncate series to length size. |
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.polynomial.polynomial.Polynomial.html