summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
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 /numpy/core/fromnumeric.py
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 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions