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
When I define a polynomial with a single very large root (and other small ones), I get a significant difference between the outcomes of the roots and polyroots functions. Mainly the small roots seem to differ. Maybe even more importantly, the outcomes can also become complex in the polyroots function.
I'm not 100% sure this can be considered a bug, apologies if this is not the case. The reason for reporting is that as a naive user, I expect 'new' API's to behave identical (or at least similar) to the original functions. I'm using these functions to find the intersections of 2 polynomials, which represent the performance characteristics of a propeller.
As far as I'm concerned, this issue does not need to be prioritised in any way. I just wanted to make sure that this behaviour is known if this wasn't already the case. Thanks either way for your input/help!
The text was updated successfully, but these errors were encountered:
Hi charris,
Thanks for your quick reply! Just to make sure there's no misunderstanding: In the issue I've encountered, there are 2 small roots symmetric around 0 and 1 large root. The example in your reply is kind of the opposite, it has 2 large roots around 0 and 1 small root. I'll post the results (from my machine) of both examples below.
Hi all,
Curiosity got the better of me on a Sunday evening. I tried to measure the root finding error for a third order polynomial, two roots symmetrically around zero (at -1 an 1) and another relatively large root. polyroots is in blue and roots is in orange.
Interestingly, it looks like it's very dependent on the symmetry of the 2 small roots:
Describe the issue:
Description
When I define a polynomial with a single very large root (and other small ones), I get a significant difference between the outcomes of the
roots
andpolyroots
functions. Mainly the small roots seem to differ. Maybe even more importantly, the outcomes can also become complex in thepolyroots
function.Reproduce the code example:
Error message:
No response
Python and NumPy Versions:
Runtime Environment:
No response
Context for the issue:
I'm not 100% sure this can be considered a bug, apologies if this is not the case. The reason for reporting is that as a naive user, I expect 'new' API's to behave identical (or at least similar) to the original functions. I'm using these functions to find the intersections of 2 polynomials, which represent the performance characteristics of a propeller.
As far as I'm concerned, this issue does not need to be prioritised in any way. I just wanted to make sure that this behaviour is known if this wasn't already the case. Thanks either way for your input/help!
The text was updated successfully, but these errors were encountered: