summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-07-08 16:15:51 -0600
committerGitHub <noreply@github.com>2018-07-08 16:15:51 -0600
commit25f9f8a8b44f31dff92c119092d682d5d971e508 (patch)
tree10211f3baaf49ad1f84d7081ad45954b72c2d73d /numpy
parent7cd94f262b1b12d29f7903195098903cd0e9db22 (diff)
parentd207bdd2f112f72bb4e605241bad09a2384465ce (diff)
downloadnumpy-25f9f8a8b44f31dff92c119092d682d5d971e508.tar.gz
Merge pull request #11533 from aifer4/fixed-cheb-examples
DOC: Fixed example code for cheb2poly and poly2cheb (see #11519)
Diffstat (limited to 'numpy')
-rw-r--r--numpy/polynomial/chebyshev.py4
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.])
"""