class documentation
class Chebyshev(ABCPolyBase): (source)
A Chebyshev series class.
The Chebyshev class provides the standard Python numerical methods '+', '-', '*', '//', '%', 'divmod', '**', and '()' as well as the methods listed below.
Parameters | |
coef | Chebyshev coefficients in order of increasing degree, i.e., (1, 2, 3) gives 1*T_0(x) + 2*T_1(x) + 3*T_2(x). |
domain | 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 | Window, see
New in version 1.6.0.
|
Class Method | interpolate |
Interpolate a function at the Chebyshev points of the first kind. |
Class Variable | basis |
Undocumented |
Class Variable | domain |
Undocumented |
Class Variable | window |
Undocumented |
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. |
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 | 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 |
Check if coefficients match. |
Method | has |
Check if domains match. |
Method | has |
Check if types match. |
Method | has |
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 |
Undocumented |
Class Variable | __hash__ |
Undocumented |
Class Variable | maxpower |
Undocumented |
Instance Variable | __dict__ |
Undocumented |
Property | symbol |
Undocumented |
Class Method | _repr |
Undocumented |
Class Method | _str |
String representation of a single polynomial term using ** and _ to represent superscripts and subscripts, respectively. |
Class Method | _str |
String representation of single polynomial term using unicode characters for superscripts and subscripts. |
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 |
Undocumented |
Static Method | _roots |
Undocumented |
Static Method | _sub |
Undocumented |
Static Method | _val |
Undocumented |
Method | _generate |
Generate the full string representation of the polynomial, using term_method to generate each polynomial term. |
Method | _get |
Interpret other as polynomial coefficients. |
Method | _repr |
Undocumented |
Class Variable | _subscript |
Undocumented |
Class Variable | _superscript |
Undocumented |
Class Variable | _use |
Undocumented |
Instance Variable | _symbol |
Undocumented |
Interpolate a function at the Chebyshev points of the first kind.
Returns the series that interpolates func
at the Chebyshev points of
the first kind scaled and shifted to the domain
. The resulting series
tends to a minmax approximation of func
when the function is
continuous in the domain.
New in version 1.14.0.
Notes
See numpy.polynomial.chebfromfunction
for more details.
Parameters | |
func:function | The function to be interpolated. It must be a function of a single
variable of the form f(x, a, b, c...), where a, b, c... are
extra arguments passed in the args parameter. |
deg:int | Degree of the interpolating polynomial. |
domain:{None, [beg , end] }, optional | Domain over which func is interpolated. The default is None, in
which case the domain is [-1, 1]. |
args:tuple , optional | Extra arguments to be used in the function call. Default is no extra arguments. |
Returns | |
Chebyshev instance | polynomial - Interpolating Chebyshev instance. |