# Path: pyneb/utils/polytemplate.py



import numpy as np
import numpy.linalg as la
import warnings
from .polytemplate import polytemplate
from .polyutils import trimcoef, as_series, RankWarning, trimseq
    from polynomial import polyadd, polysub, polymulx

    Parameters
    ----------
    npts : int
        Number of sample points desired.

    Returns
    -------
    pts : ndarray
        The Chebyshev points of the second kind.

    Notes
    -----
    .. versionadded:: 1.5.0

    """
    _npts = int(npts)
    if _npts != npts:
        raise ValueError("npts must be integer")
    if _npts < 2:
        raise ValueError("npts must be >= 2")

    x = np.linspace(-np.pi, 0, _npts)
    return np.cos(x)


#
# Chebyshev series class
#


# Path: pyneb/utils/polytemplate.py



# Path: pyneb/utils/chebyshev.py
import numpy as np
import numpy.linalg as la
import warnings
from .polytemplate import polytemplate
from .polyutils import trimcoef, as_series, RankWarning, trimseq
    from polynomial import polyadd, polysub, polymulx


    Parameters
    ----------
    npts : int
        Number of sample points desired.

    Returns
    -------
    pts : ndarray
        The Chebyshev points of the second kind.

    Notes
    -----
    .. versionadded:: 1.5.0

    """
    _npts = int(npts)
    if _npts != npts:
        raise ValueError("npts must be integer")
    if _npts < 2:
        raise ValueError("npts must be >= 2")

    x = np.linspace(-np.pi, 0, _npts)
    return np.cos(x)


#
# Chebyshev series class
#


exec(polytemplate.substitute(name='Chebyshev', nick='cheb', domain='[-1,1]'))