This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / _polybase / ABCPolyBase / basis

classmethod

numpy.polynomial._polybase:ABCPolyBase.basis

source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/_polybase.py :1114

Summary

Series basis polynomial of degree deg.

Extended Summary

Returns the series representing the basis polynomial of degree deg.

Parameters

deg : int

Degree of the basis polynomial for the series. Must be >= 0.

domain : {None, array_like}, optional

If given, the array must be of the form [beg, end], where beg and end are the endpoints of the domain. If None is given then the class domain is used. The default is None.

window : {None, array_like}, optional

If given, the resulting array must be if the form [beg, end], where beg and end are the endpoints of the window. If None is given then the class window is used. The default is None.

symbol : str, optional

Symbol representing the independent variable. Default is 'x'.

Returns

new_series : series

A series with the coefficient of the deg term set to one and all others zero.

Aliases

  • numpy.polynomial._polybase.ABCPolyBase.basis