numpy.polynomial.Legendre.linspace

Legendre.linspace(n=100, domain=None)

Return x,y values at equally spaced points in domain.

Returns x, y values at n equally spaced points across domain. Here y is the value of the polynomial at the points x. This is intended as a plotting aid.

Parameters :

n : int, optional

Number of point pairs to return. The default value is 100.

Returns :

x, y : ndarrays

x is equal to linspace(self.domain[0], self.domain[1], n) y is the polynomial evaluated at x.

.. versionadded:: 1.5.0 :

Previous topic

numpy.polynomial.Legendre.integ

Next topic

numpy.polynomial.Legendre.mapparms

This Page