You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the differences are due to the choice of the companion matrix form. Polynomial.roots in NumPy 1.16 and earlier uses the "standard" form, while in NumPy 1.17 and later it uses the "rotated" form (see #13202). On the other hand, np.roots seems to have always used the "rotated" form (see here).
Just as a remark, there might be more accurate methods for computing roots of polynomials. See, e.g., https://doi.org/10.1137/140983434.
The roots are well outside of the expected values. But, that is not the case with np.roots(). Is that expected?
Reproducing code example:
Numpy/Python version information:
1.16.4 3.7.4 (default, Jul 9 2019, 16:32:37)
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]
The text was updated successfully, but these errors were encountered: