summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polynomial.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/polynomial/polynomial.py')
-rw-r--r--numpy/polynomial/polynomial.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py
index a53f02343..6b5b7be98 100644
--- a/numpy/polynomial/polynomial.py
+++ b/numpy/polynomial/polynomial.py
@@ -283,6 +283,10 @@ def polymulx(cs):
out : ndarray
Array representing the result of the multiplication.
+ Notes
+ -----
+ .. versionadded:: 1.5.0
+
"""
# cs is a trimmed copy
[cs] = pu.as_series([cs])
@@ -544,8 +548,7 @@ def polyint(cs, m=1, k=[], lbnd=0, scl=1):
Raises
------
ValueError
- If ``m < 1``, ``len(k) > m``, ``np.isscalar(lbnd) == False``, or
- ``np.isscalar(scl) == False``.
+ If ``m < 1``, ``len(k) > m``.
See Also
--------
@@ -577,7 +580,7 @@ def polyint(cs, m=1, k=[], lbnd=0, scl=1):
"""
cnt = int(m)
- if np.isscalar(k) :
+ if not np.iterable(k):
k = [k]
if cnt != m: