NumPy

Previous topic

numpy.polynomial.legendre.Legendre.mapparms

Next topic

numpy.polynomial.legendre.Legendre.trim

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

numpy.polynomial.legendre.Legendre.roots

method

Legendre.roots(self)[source]

Return the roots of the series polynomial.

Compute the roots for the series. Note that the accuracy of the roots decrease the further outside the domain they lie.

Returns
rootsndarray

Array containing the roots of the series.