parameters: (cls, func, deg, domain=None, args=())
return_statement: return cls(coef, domain=domain)
docstring: Interpolate a function at the Chebyshev points of the first kind.
  
          Returns the series that interpolates `func` at the Chebyshev points of
          the first kind scaled and shifted to the `domain`. The resulting series
          tends to a minmax approximation of `func` when the function is
          continuous in the domain.
  
          .. versionadded:: 1.14.0
  
          Parameters
          ----------
          func : function
              The function to be interpolated. It must be a function of a single
              variable of the form ``f(x, a, b, c...)``, where ``a, b, c...`` are
              extra arguments passed in the `args` parameter.
          deg : int
              Degree of the interpolating polynomial.
          domain : {None, [beg, end]}, optional
              Domain over which `func` is interpolated. The default is None, in
              which case the domain is [-1, 1].
          args : tuple, optional
              Extra arguments to be used in the function call. Default is no
              extra arguments.
  
          Returns
          -------
          polynomial : Chebyshev instance
              Interpolating Chebyshev instance.
  
          Notes
          -----
          See `numpy.polynomial.chebfromfunction` for more details.
docstring_summary: Interpolate a function at the Chebyshev points of the first kind.
docstring_tokens: Interpolate a function at the Chebyshev points of the first kind .
function: def interpolate(cls, func, deg, domain=None, args=()):
          """Interpolate a function at the Chebyshev points of the first kind.
  
          Returns the series that interpolates `func` at the Chebyshev points of
          the first kind scaled and shifted to the `domain`. The resulting series
          tends to a minmax approximation of `func` when the function is
          continuous in the domain.
  
          .. versionadded:: 1.14.0
  
          Parameters
          ----------
          func : function
              The function to be interpolated. It must be a function of a single
              variable of the form ``f(x, a, b, c...)``, where ``a, b, c...`` are
              extra arguments passed in the `args` parameter.
          deg : int
              Degree of the interpolating polynomial.
          domain : {None, [beg, end]}, optional
              Domain over which `func` is interpolated. The default is None, in
              which case the domain is [-1, 1].
          args : tuple, optional
              Extra arguments to be used in the function call. Default is no
              extra arguments.
  
          Returns
          -------
          polynomial : Chebyshev instance
              Interpolating Chebyshev instance.
  
          Notes
          -----
          See `numpy.polynomial.chebfromfunction` for more details.
  
          """
          if domain is None:
              domain = cls.domain
          xfunc = lambda x: func(pu.mapdomain(x, cls.window, domain), *args)
          coef = chebinterpolate(xfunc, deg)
          return cls(coef, domain=domain)
function_tokens: def interpolate ( cls , func , deg , domain = None , args = ( ) ) : if domain is None : domain = cls . domain xfunc = lambda x : func ( pu . mapdomain ( x , cls . window , domain ) , * args ) coef = chebinterpolate ( xfunc , deg ) return cls ( coef , domain = domain )