bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / legendre / Legendre
ABCMeta
numpy.polynomial.legendre:Legendre
source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/legendre.py :1560
Signature
def Legendre ( coef , domain = None , window = None , symbol = x ) Summary
A Legendre series class.
Extended Summary
The Legendre class provides the standard Python numerical methods '+', '-', '', '//', '%', 'divmod', '*', and '()' as well as the attributes and methods listed below.
Parameters
coef: array_likeLegendre coefficients in order of increasing degree, i.e.,
(1, 2, 3)gives1*P_0(x) + 2*P_1(x) + 3*P_2(x).domain: (2,) array_like, optionalDomain 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, optionalWindow, see
domainfor its use. The default value is [-1., 1.].symbol: str, optionalSymbol used to represent the independent variable in string representations of the polynomial expression, e.g. for printing. The symbol must be a valid Python identifier. Default value is 'x'.
Aliases
-
numpy.polynomial.Legendre