summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authore-q <eric.antonio.quintero@gmail.com>2016-04-12 11:26:05 -0700
committerCharles Harris <charlesr.harris@gmail.com>2016-06-12 12:08:54 -0600
commit76e2d4751294077cc4cafe155571ead8213133a8 (patch)
tree3a449a0337c637f1983a7570a3347ccfdaa7c347 /doc/source
parent76c27b5d2a28657062b2dcebba062f1941e4955f (diff)
downloadnumpy-76e2d4751294077cc4cafe155571ead8213133a8.tar.gz
ENH: Add `polyrootval` to numpy.polynomial
As one can easily encounter when working with high-order signal processing filters, converting a high-order polynomial from its roots to its polynomial coefficients can be quite lossy, leading to inaccuracies in the filter's properties. This PR adds a new function, `polyrootval` - based on `polyval` - that evaluates a polynomial given a list of its roots. The benefit of calculating it this way can be seen at scipy/scipy:6059. Some tests are included, as well.
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/reference/routines.polynomials.polynomial.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/source/reference/routines.polynomials.polynomial.rst b/doc/source/reference/routines.polynomials.polynomial.rst
index 431856622..8194ca867 100644
--- a/doc/source/reference/routines.polynomials.polynomial.rst
+++ b/doc/source/reference/routines.polynomials.polynomial.rst
@@ -32,6 +32,7 @@ Basics
polygrid3d
polyroots
polyfromroots
+ polyvalfromroots
Fitting
-------