diff options
author | cookedm <cookedm@localhost> | 2005-12-21 16:40:27 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2005-12-21 16:40:27 +0000 |
commit | 27ee3d2af4f457dfd64ee803a1addecd6a9b191a (patch) | |
tree | 763ad56552a687ae0118a8e7a0690ea506dacb08 /scipy/base/tests/test_polynomial.py | |
parent | 42e7dd3c039992cb14b113a9314b3d6fefcb56bc (diff) | |
download | numpy-27ee3d2af4f457dfd64ee803a1addecd6a9b191a.tar.gz |
p=poly1d([1,2,3], variable='lambda') will use 'lambda' as the variable in str(p)
Diffstat (limited to 'scipy/base/tests/test_polynomial.py')
-rw-r--r-- | scipy/base/tests/test_polynomial.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scipy/base/tests/test_polynomial.py b/scipy/base/tests/test_polynomial.py index c03dc5809..928306e32 100644 --- a/scipy/base/tests/test_polynomial.py +++ b/scipy/base/tests/test_polynomial.py @@ -59,6 +59,16 @@ poly1d([ 0.00039683, 0.00277778, 0.025 , 0. , 0. , poly1d([ 2., 2.]) >>> p.deriv(2) poly1d([ 2.]) + +>>> q = poly1d([1.,2,3], variable='y') +>>> print q + 2 +1 y + 2 y + 3 +>>> q = poly1d([1.,2,3], variable='lambda') +>>> print q + 2 +1 lambda + 2 lambda + 3 + """ from scipy.test.testing import * |