diff options
author | Ross Barnowski <rossbar@berkeley.edu> | 2022-09-27 14:17:11 -0700 |
---|---|---|
committer | Ross Barnowski <rossbar@berkeley.edu> | 2022-09-27 14:17:11 -0700 |
commit | 275140119bdb548560dc67faf815dde9a5d654e3 (patch) | |
tree | 1b9779dc64f23e68fecc4a5484e78e28769f3962 /numpy/polynomial/chebyshev.py | |
parent | f454a92417950106168f66a73b5b406478bf0d91 (diff) | |
download | numpy-275140119bdb548560dc67faf815dde9a5d654e3.tar.gz |
DOC: Revert formula change, add note about order.
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
Diffstat (limited to 'numpy/polynomial/chebyshev.py')
-rw-r--r-- | numpy/polynomial/chebyshev.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py index 106d1e36f..c663ffab0 100644 --- a/numpy/polynomial/chebyshev.py +++ b/numpy/polynomial/chebyshev.py @@ -1959,7 +1959,8 @@ def chebpts2(npts): Chebyshev points of the second kind. The Chebyshev points of the second kind are the points ``cos(x)``, - where ``x = [pi*k/(npts - 1) for k in range(-npts+1,1)]``. + where ``x = [pi*k/(npts - 1) for k in range(npts)]`` sorted in ascending + order. Parameters ---------- |