summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r--numpy/lib/polynomial.py15
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