class documentation

class Polynomial(ABCPolyBase):

View In Hierarchy

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

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].

New in version 1.6.0.
Class Variable basis​_name Undocumented
Class Variable domain Undocumented
Class Variable window Undocumented
Class Method ​_str​_term​_unicode String representation of single polynomial term using unicode characters for superscripts and subscripts.
Static Method ​_repr​_latex​_term Undocumented
Static Method ​_str​_term​_ascii String representation of a single polynomial term using ** and _ to represent superscripts and subscripts, respectively.

Inherited from ABCPolyBase:

Class Method basis Series basis polynomial of degree deg.
Class Method cast Convert series to series of this class.
Class Method fit Least squares fit to data.
Class Method fromroots Return series instance that has the specified roots.
Class Method identity Identity function.
Static Method ​_add Undocumented
Static Method ​_der Undocumented
Static Method ​_div Undocumented
Static Method ​_fit Undocumented
Static Method ​_fromroots Undocumented
Static Method ​_int Undocumented
Static Method ​_line Undocumented
Static Method ​_mul Undocumented
Static Method ​_pow Undocumented
Static Method ​_repr​_latex​_scalar Undocumented
Static Method ​_roots Undocumented
Static Method ​_sub Undocumented
Static Method ​_val Undocumented
Method __add__ Undocumented
Method __call__ Undocumented
Method __divmod__ Undocumented
Method __eq__ Undocumented
Method __floordiv__ Undocumented
Method __format__ Undocumented
Method __getstate__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __mod__ Undocumented
Method __mul__ Undocumented
Method __ne__ Undocumented
Method __neg__ Undocumented
Method __pos__ Undocumented
Method __pow__ Undocumented
Method __radd__ Undocumented
Method __rdiv__ Undocumented
Method __rdivmod__ Undocumented
Method __repr__ Undocumented
Method __rfloordiv__ Undocumented
Method __rmod__ Undocumented
Method __rmul__ Undocumented
Method __rsub__ Undocumented
Method __rtruediv__ Undocumented
Method __setstate__ Undocumented
Method __str__ Undocumented
Method __sub__ Undocumented
Method __truediv__ Undocumented
Method ​_generate​_string Generate the full string representation of the polynomial, using term_method to generate each polynomial term.
Method ​_get​_coefficients Interpret other as polynomial coefficients.
Method ​_repr​_latex​_ Undocumented
Method convert Convert series to a different kind and/or domain and/or window.
Method copy Return a copy.
Method cutdeg Truncate series to the given degree.
Method degree The degree of the series.
Method deriv Differentiate.
Method has​_samecoef Check if coefficients match.
Method has​_samedomain Check if domains match.
Method has​_sametype Check if types match.
Method has​_samewindow Check if windows match.
Method integ Integrate.
Method linspace Return x, y values at equally spaced points in domain.
Method mapparms Return the mapping parameters.
Method roots Return the roots of the series polynomial.
Method trim Remove trailing coefficients
Method truncate Truncate series to length size.
Class Variable __array​_ufunc__ Undocumented
Class Variable __hash__ Undocumented
Class Variable ​_subscript​_mapping Undocumented
Class Variable ​_superscript​_mapping Undocumented
Class Variable ​_use​_unicode Undocumented
Class Variable maxpower Undocumented
Instance Variable __dict__ Undocumented
Instance Variable coef Undocumented
basis_name =
domain =
window =
@classmethod
def _str_term_unicode(cls, i, arg_str):
String representation of single polynomial term using unicode characters for superscripts and subscripts.
@staticmethod
def _repr_latex_term(i, arg_str, needs_parens):
@staticmethod
def _str_term_ascii(i, arg_str):
String representation of a single polynomial term using ** and _ to represent superscripts and subscripts, respectively.