#### Previous topic

numpy.polynomial.chebyshev.Chebyshev.fit

#### Next topic

numpy.polynomial.chebyshev.Chebyshev.has_samecoef

# numpy.polynomial.chebyshev.Chebyshev.fromroots

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

  Return Chebyshev instance with specified roots.

  Returns an instance of Chebyshev 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. domain : {array_like, None}, optional Domain for the resulting instance of Chebyshev. If none the domain is the interval from the smallest root to the largest. The default is [-1,1]. window : array_like, optional Window for the resulting instance of Chebyshev. The default value is [-1,1].
  Returns : | object : Chebyshev instance Series with the specified roots.

  See also

  `chebfromroots`
    equivalent function