diff options
author | e-q <eric.antonio.quintero@gmail.com> | 2016-04-12 11:26:05 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-06-12 12:08:54 -0600 |
commit | 76e2d4751294077cc4cafe155571ead8213133a8 (patch) | |
tree | 3a449a0337c637f1983a7570a3347ccfdaa7c347 /numpy/core/fromnumeric.py | |
parent | 76c27b5d2a28657062b2dcebba062f1941e4955f (diff) | |
download | numpy-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