method
Return series instance that has the specified roots.
Returns a series representing the product (x - r[0])*(x - r[1])*...*(x - r[n-1]), where r is a list of roots.
List of roots.
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 for the returned series. If None the class window is used. The default is None.
Symbol representing the independent variable. Default is ‘x’.
Series with the specified roots.
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.polynomial.polynomial.Polynomial.fromroots.html