diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2007-02-18 21:02:46 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2007-02-18 21:02:46 +0000 |
commit | b860a39925a5e0a49d54fa363ccdf6113dfef12d (patch) | |
tree | b717f4026701aa9dde001aefc44820ffea5f94c4 /numpy/lib/polynomial.py | |
parent | ff2ceaa981dd5ef632ae965fcbaf81577dc625d1 (diff) | |
download | numpy-b860a39925a5e0a49d54fa363ccdf6113dfef12d.tar.gz |
Fix docstrings for loading with DocFileSuite.
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index f8bc1f693..ff429e3f8 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -50,13 +50,14 @@ def _lstsq(X, y, rcond): def poly(seq_of_zeros): """ Return a sequence representing a polynomial given a sequence of roots. - If the input is a matrix, return the characteristic polynomial. - - Example: - - >>> b = roots([1,3,1,5,6]) - >>> poly(b) - array([1., 3., 1., 5., 6.]) + If the input is a matrix, return the characteristic polynomial. + + Example: + + >>> b = roots([1,3,1,5,6]) + >>> poly(b) + array([1., 3., 1., 5., 6.]) + """ seq_of_zeros = atleast_1d(seq_of_zeros) sh = seq_of_zeros.shape |