numpy.polynomial.legendre.Legendre.fromroots
method
- 
classmethod polynomial.legendre.Legendre.fromroots(roots, domain=[], window=None)[source] - 
Return series instance that has the specified roots.
Returns a series representing the product
(x - r[0])*(x - r[1])*...*(x - r[n-1]), whereris a list of roots.- Parameters
 - 
- 
rootsarray_like - 
List of roots.
 - 
domain{[], None, array_like}, optional - 
Domain for the resulting series. If None the domain is the interval from the smallest root to the largest. If [] the domain is the class domain. The default is [].
 - 
window{None, array_like}, optional - 
Window for the returned series. If None the class window is used. The default is None.
 
 - 
 - Returns
 - 
- 
new_seriesseries - 
Series with the specified roots.
 
 - 
 
 
    © 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
    https://numpy.org/doc/1.21/reference/generated/numpy.polynomial.legendre.Legendre.fromroots.html