summaryrefslogtreecommitdiff
path: root/numpy/polynomial/chebyshev.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-08-10 11:04:18 -0500
committerEric Wieser <wieser.eric@gmail.com>2017-08-10 12:26:20 -0500
commitcc781ee138982335f9a7986a65ac05ee938f9b14 (patch)
tree6e36051fbb6987721d87b737409671b25574a92e /numpy/polynomial/chebyshev.py
parent9e05bc3f5197ec465362f651b73f01b6476625d5 (diff)
downloadnumpy-cc781ee138982335f9a7986a65ac05ee938f9b14.tar.gz
ENH: Show domain and window as kwargs in repr
Also, update the docs with this new repr
Diffstat (limited to 'numpy/polynomial/chebyshev.py')
-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 dbf380991..b28ea0462 100644
--- a/numpy/polynomial/chebyshev.py
+++ b/numpy/polynomial/chebyshev.py
@@ -361,10 +361,10 @@ def poly2cheb(pol):
>>> from numpy import polynomial as P
>>> p = P.Polynomial(range(4))
>>> p
- Polynomial([ 0., 1., 2., 3.], [-1., 1.])
+ Polynomial([ 0., 1., 2., 3.], domain=[-1, 1], window=[-1, 1])
>>> c = p.convert(kind=P.Chebyshev)
>>> c
- Chebyshev([ 1. , 3.25, 1. , 0.75], [-1., 1.])
+ Chebyshev([ 1. , 3.25, 1. , 0.75], domain=[-1, 1], window=[-1, 1])
>>> P.poly2cheb(range(4))
array([ 1. , 3.25, 1. , 0.75])