diff options
author | Max Aifer <maifer@haverford.edu> | 2018-07-08 16:10:30 -0400 |
---|---|---|
committer | Max Aifer <maifer@haverford.edu> | 2018-07-08 16:28:03 -0400 |
commit | d207bdd2f112f72bb4e605241bad09a2384465ce (patch) | |
tree | d015fa3c01612b66b78b9ed5ef2a52da2b22fad5 /numpy/polynomial | |
parent | 17b332819e28a52aa0d6a4bd9060747cf9997193 (diff) | |
download | numpy-d207bdd2f112f72bb4e605241bad09a2384465ce.tar.gz |
DOC: Fixed example code for cheb2poly and poly2cheb (see #11519)
Diffstat (limited to 'numpy/polynomial')
-rw-r--r-- | numpy/polynomial/chebyshev.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py index 946e0499c..310c711ef 100644 --- a/numpy/polynomial/chebyshev.py +++ b/numpy/polynomial/chebyshev.py @@ -365,7 +365,7 @@ def poly2cheb(pol): >>> c = p.convert(kind=P.Chebyshev) >>> c Chebyshev([ 1. , 3.25, 1. , 0.75], domain=[-1, 1], window=[-1, 1]) - >>> P.poly2cheb(range(4)) + >>> P.chebyshev.poly2cheb(range(4)) array([ 1. , 3.25, 1. , 0.75]) """ @@ -417,7 +417,7 @@ def cheb2poly(c): >>> p = c.convert(kind=P.Polynomial) >>> p Polynomial([ -2., -8., 4., 12.], [-1., 1.]) - >>> P.cheb2poly(range(4)) + >>> P.chebyshev.cheb2poly(range(4)) array([ -2., -8., 4., 12.]) """ |