def chebpts1(npts):
_npts = int(npts)<EOL>if _npts != npts:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if _npts < <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>x = np.linspace(-np.pi, <NUM_LIT:0>, _npts, endpoint=False) + np.pi/(<NUM_LIT:2>*_npts)<EOL>return np.cos(x)<EOL>
Chebyshev points of the first kind.

The Chebyshev points of the first kind are the points ``cos(x)``,
where ``x = [pi*(k + .5)/npts for k in range(npts)]``.

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

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

See Also
--------
chebpts2

Notes
-----

.. versionadded:: 1.5.0