From d207bdd2f112f72bb4e605241bad09a2384465ce Mon Sep 17 00:00:00 2001 From: Max Aifer Date: Sun, 8 Jul 2018 16:10:30 -0400 Subject: DOC: Fixed example code for cheb2poly and poly2cheb (see #11519) --- numpy/polynomial/chebyshev.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/polynomial') 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.]) """ -- cgit v1.2.1