-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
Allow negative shift for flint rational polynomial #39711
base: develop
Are you sure you want to change the base?
Conversation
Documentation preview for this PR (built with commit 8ce71e4; changes) is ready! 🎉 |
I don't think this will (fully) fix #39710. If it indeed does, then please add the corresponding tests. |
Actually thinking about it this will still fail if user says something like On the other hand Actually it is worse than that: Do you think it's worth supporting these (rather exceptional, I think) cases? |
I don't think it is worth worrying about those cases. I don't think there will be a good reason for someone to do computations like that. Does this also work for |
It does work. The point of If |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you're right. I got the directions of everything with the signs all mixed up in my head. Thanks. Once tests pass, positive review.
From an optimization POV, I think it would be better to simply return self
in the case n
is less than the valuation, but that can be done on a followup (if you want).
Fixes #39710
Note that the behavior is compatible with the existing behavior of e.g.
ZZ[]
.📝 Checklist
⌛ Dependencies