From 76e2d4751294077cc4cafe155571ead8213133a8 Mon Sep 17 00:00:00 2001 From: e-q Date: Tue, 12 Apr 2016 11:26:05 -0700 Subject: 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. --- doc/source/reference/routines.polynomials.polynomial.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/source') 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 ------- -- cgit v1.2.1