-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
In lazy power series rings, 0 + a and 0 - a return 0 #15249
Comments
comment:1
One problem is in series_order.py. There, a very simple lattice (in fact, a total order) should be implemented: NonNegativeIntegers together with the two special values unknown and infinity. unknown is the minimal element, infinity the maximal element. Comparing unknown with another element works, comparing infinity with another element works, but comparing an integer with unknown does not work, because the comparison invoked is from Integer. How should I create such a lattice really? |
comment:3
I've done some work on species recently which fixes this as a side effect. This is related to #10084. I'll post the branch asap. |
Changed keywords from lazy-power-series, species to LazyPowerSeries, species |
comment:5
Replying to @mwhansen:
Great! I'm all set to dig into the species code too. For a start, I looked through the tickets that are related to the lazy power series code and changed the keyword to LazyPowerSeries... Did you see #10931? I guess the patch won't apply anymore, but the philosophy should :-) Best, Martin |
comment:6
A fix is in #15673 |
Stopgaps: incorrectAnswerMarker |
comment:11
This is fixed in #32367 and it should be tested by the testsuite. |
comment:12
Thanks a lot, Tejasvi, Travis and Martin! |
comment:13
Hi Darij! I am glad you like it! After #34552, you will like it even more :-) |
Reviewer: Travis Scrimshaw |
Correct so far...
But
x - L.zero()
andx + L.zero()
return correct results.See also #15248 for another lazy power series bug.
CC: @mwhansen @mantepse @tscrim
Component: algebra
Keywords: LazyPowerSeries, species
Stopgaps: incorrectAnswerMarker
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/15249
The text was updated successfully, but these errors were encountered: