class numpy.polynomial.legendre.Legendre(coef, domain=None, window=None) [source]
A Legendre series class. The Legendre class provides the standard Python numerical methods ?+?, ?-?, ?*?, ?//?, ?%?, ?divmod?, ?**?, and ?()? as well as the attributes and methods listed in the ABCPolyBase documentation. Parameters:
coef : array_like Legendre coefficients in order of increasing degree, i.e., (1, 2, 3) gives 1*P_0(x) + 2*P_1(x) + 3*P_2(x). domain : (2,) array_like, optional Domain to use. T