summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-02 13:08:29 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-02 13:08:29 -0600
commite05da9e451c0dcbc892423601edd7c354117456e (patch)
tree73f0fb74e620bf8f4d388b702d6ba73b71cd7e16 /numpy/lib/polynomial.py
parentf9c7bde68655de06546f5c8dba30314888e409cc (diff)
downloadnumpy-e05da9e451c0dcbc892423601edd7c354117456e.tar.gz
WHT: Cleanup trailing whitespace.
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r--numpy/lib/polynomial.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index f3146d691..94da4784c 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -93,12 +93,12 @@ def poly(seq_of_zeros):
>>> np.poly((0, 0, 0)) # Multiple root example
array([1, 0, 0, 0])
-
+
The line above represents z**3 + 0*z**2 + 0*z + 0.
>>> np.poly((-1./2, 0, 1./2))
array([ 1. , 0. , -0.25, 0. ])
-
+
The line above represents z**3 - z/4
>>> np.poly((np.random.random(1.)[0], 0, np.random.random(1.)[0]))
@@ -940,7 +940,7 @@ class poly1d(object):
array([-1.+1.41421356j, -1.-1.41421356j])
>>> p(p.r)
array([ -4.44089210e-16+0.j, -4.44089210e-16+0.j])
-
+
These numbers in the previous line represent (0, 0) to machine precision
Show the coefficients: