SciPy

This is documentation for an old release of NumPy (version 1.8.0). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.polynomial.polynomial.Polynomial.basis

static Polynomial.basis(deg, domain=[-1, 1], window=[-1, 1])

Polynomial polynomial of degree deg.

Returns an instance of the Polynomial polynomial of degree d.

Parameters :

deg : int

Degree of the Polynomial polynomial. Must be >= 0.

domain : array_like

The resulting array must be of the form [beg, end], where beg and end are the endpoints of the domain.

window : array_like

The resulting array must be if the form [beg, end], where beg and end are the endpoints of the window.

Returns

p : Polynomial instance

Notes

New in version 1.7.0.