-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eq[Polynomial[C]] throws ArrayIndexOutOfBoundsException for negative exponents #756
Comments
I'm not sure polynomials were designed to accept negative exponents. For example, the @tixxit: can you comment on this? |
They were not - I think it is probably a bug that we don't throw an exception during construction in this case and we should fix that bug. |
Then we must also fix this line right here, which generates random exponents that could all be negative :) |
😬 |
Submitted a quick fix for that particular problem. |
If polynomials aren't supposed to have negative exponents, should |
@kschwarz1116 that's a good question. I wonder if |
Reproduce:
The text was updated successfully, but these errors were encountered: