numpy.polynomial.polynomial.
Polynomial
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.
ABCPolyBase
Polynomial coefficients in order of increasing degree, i.e., (1, 2, 3) give 1 + 2*x + 3*x**2.
(1, 2, 3)
1 + 2*x + 3*x**2
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].
[domain[0], domain[1]]
[window[0], window[1]]
Window, see domain for its use. The default value is [-1, 1].
domain
New in version 1.6.0.
Methods
__call__(arg)
__call__
Call self as a function.
basis(deg[, domain, window])
basis
Series basis polynomial of degree deg.
cast(series[, domain, window])
cast
Convert series to series of this class.
convert([domain, kind, window])
convert
Convert series to a different kind and/or domain and/or window.
copy()
copy
Return a copy.
cutdeg(deg)
cutdeg
Truncate series to the given degree.
degree()
degree
The degree of the series.
deriv([m])
deriv
Differentiate.
fit(x, y, deg[, domain, rcond, full, w, window])
fit
Least squares fit to data.
fromroots(roots[, domain, window])
fromroots
Return series instance that has the specified roots.
has_samecoef(other)
has_samecoef
Check if coefficients match.
has_samedomain(other)
has_samedomain
Check if domains match.
has_sametype(other)
has_sametype
Check if types match.
has_samewindow(other)
has_samewindow
Check if windows match.
identity([domain, window])
identity
Identity function.
integ([m, k, lbnd])
integ
Integrate.
linspace([n, domain])
linspace
Return x, y values at equally spaced points in domain.
mapparms()
mapparms
Return the mapping parameters.
roots()
roots
Return the roots of the series polynomial.
trim([tol])
trim
Remove trailing coefficients
truncate(size)
truncate
Truncate series to length size.
numpy.polynomial.polynomial