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
fraction field: fix conversion from symbolic ring #26150
Comments
Branch: u/dkrenn/conv-fraction-field |
Commit: |
New commits:
|
Author: Daniel Krenn |
This comment has been minimized.
This comment has been minimized.
Reviewer: Marc Mezzarobba |
comment:4
Thanks for the fix! You can set the ticket to positive_review on my behalf if the patchbot is happy. |
comment:5
Unfortunately, there is one doctest failing:
I have no idea what is going on here. |
comment:6
Nitpick: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Replying to @jdemeyer:
Thanks. Changed. |
comment:9
Replying to @dkrenn:
Follow up at #26155. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
This is now an alternative fix for the issue. Needs review again and let's see what the patchbot says :) |
comment:12
Again some failing doctests... :( |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
There is some underlying problem with a recursive call when creating an element out of So again, let us see what the patchbot says... |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
Finally, I've written a fix that solves the issues and with which the patchbot is happy as well. To be more accurate, I've took the liberty to slightly rewrite the element constructor so that it covers a broader spectrum of inputs for the conversion. Now it should also be "correct" in the sense what it does at which point ;) Please Review (again) |
comment:19
@mezzarobba: You already have reviewed this ticket, but a small change was done after that. I would appreciate a review of the changes :) |
comment:20
Thanks for the notice. I agree with most of the changes, but I'm not sure I like the unconditional conversions in |
comment:22
Replying to @mezzarobba:
Added a doctest:
+ sage: T.<t> = ZZ[]
+ sage: S.<s> = ZZ[]
+ sage: S.fraction_field()(s/(s+1), (t-1)/(t+2))
+ (s^2 + 2*s)/(s^2 - 1) Note that there is a conversion between |
comment:23
If you are really sure you want that, I won't oppose... |
Changed branch from u/dkrenn/conv-fraction-field to |
raises an error but shouldn't. This issue is also mentioned on #24539.
AFAICS it worked in earlier SageMath versions, but probably due to #23664 (unchecked) it stopped working.
CC: @cheuberg @mezzarobba
Component: algebra
Author: Daniel Krenn
Branch/Commit:
1a3cc58
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/26150
The text was updated successfully, but these errors were encountered: