numpy.polynomial.legendre.Legendre.fromroots

static Legendre.fromroots(roots, domain=[-1, 1], window=[-1, 1])

Return Legendre instance with specified roots.

Returns an instance of Legendre representing the product (x - r[0])*(x - r[1])*...*(x - r[n-1]), where r is the list of roots.

Parameters :

roots : array_like

List of roots.

Returns :

object : Legendre instance

Series with the specified roots.

See also

legfromroots
equivalent function

Previous topic

numpy.polynomial.legendre.Legendre.fit

Next topic

numpy.polynomial.legendre.Legendre.has_samecoef

This Page