bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / _polybase / ABCPolyBase / identity
classmethod
numpy.polynomial._polybase:ABCPolyBase.identity
source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/_polybase.py :1079
Summary
Identity function.
Extended Summary
If p is the returned series, then p(x) == x for all values of x.
Parameters
domain: {None, array_like}, optionalIf given, the array must be of the form
[beg, end], wherebegandendare the endpoints of the domain. If None is given then the class domain is used. The default is None.window: {None, array_like}, optionalIf given, the resulting array must be if the form
[beg, end], wherebegandendare the endpoints of the window. If None is given then the class window is used. The default is None.symbol: str, optionalSymbol representing the independent variable. Default is 'x'.
Returns
new_series: seriesSeries of representing the identity.
Aliases
-
numpy.polynomial._polybase.ABCPolyBase.identity