summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-04-14 22:11:15 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2019-04-14 22:31:34 +0200
commit5343bc84bbbd36df73b4678d5f58c2cbcc1dda85 (patch)
tree943e3c9b74fb6243299b8dd07f22d0baf17487dc /numpy/lib/polynomial.py
parent524abf2f43b0f6d5baaec14c5e1a5feb53610f73 (diff)
downloadnumpy-5343bc84bbbd36df73b4678d5f58c2cbcc1dda85.tar.gz
DOC: fix some more See Also issues
These ones just generated warnings, not build failures
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r--numpy/lib/polynomial.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index b55764b5d..62f96f773 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -567,7 +567,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
High-order polynomials may oscillate wildly:
>>> p30 = np.poly1d(np.polyfit(x, y, 30))
- ...
+ ...
>>> # RankWarning: Polyfit may be poorly conditioned...
>>> p30(4)
-0.80000000000000204 # may vary
@@ -632,7 +632,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
# warn on rank reduction, which indicates an ill conditioned matrix
if rank != order and not full:
msg = "Polyfit may be poorly conditioned"
- warnings.warn(msg, RankWarning, stacklevel=2)
+ warnings.warn(msg, RankWarning, stacklevel=3)
if full:
return c, resids, rank, s, rcond
@@ -874,8 +874,7 @@ def polymul(a1, a2):
See Also
--------
poly1d : A one-dimensional polynomial class.
- poly, polyadd, polyder, polydiv, polyfit, polyint, polysub,
- polyval
+ poly, polyadd, polyder, polydiv, polyfit, polyint, polysub, polyval
convolve : Array convolution. Same output as polymul, but has parameter
for overlap mode.
@@ -937,7 +936,7 @@ def polydiv(u, v):
See Also
--------
- poly, polyadd, polyder, polydiv, polyfit, polyint, polymul, polysub,
+ poly, polyadd, polyder, polydiv, polyfit, polyint, polymul, polysub
polyval
Notes