This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / chebyshev / chebpts2

function

numpy.polynomial.chebyshev:chebpts2

source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/chebyshev.py :1886

Signature

def   chebpts2 ( npts )

Summary

Chebyshev points of the second kind.

Extended Summary

The Chebyshev points of the second kind are the points cos(x), where x = [pi*k/(npts - 1) for k in range(npts)] sorted in ascending order.

Parameters

npts : int

Number of sample points desired.

Returns

pts : ndarray

The Chebyshev points of the second kind.

Aliases

  • numpy.polynomial.chebyshev.chebpts2