Fix bug in comparison function in module orderings#4379
Fix bug in comparison function in module orderings#4379fingolfin merged 7 commits intooscar-system:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4379 +/- ##
==========================================
+ Coverage 84.34% 84.36% +0.01%
==========================================
Files 651 652 +1
Lines 86749 86955 +206
==========================================
+ Hits 73168 73359 +191
- Misses 13581 13596 +15
|
|
@wdecker could you please have a look at the changes to your book chapter? |
| -279936*t | ||
| t^3 + 93312 | ||
| -279936*t | ||
| -1 |
There was a problem hiding this comment.
In master we get
julia> L[1]
-e[1] - 279936*t*e[2] + (t^3 + 93312)*e[3]
julia> coefficients(L[1])
coefficients iterator of -e[1] - 279936*t*e[2] + (t^3 + 93312)*e[3]
julia> collect(coefficients(L[1]))
3-element Vector{AbstractAlgebra.Generic.FracFieldElem{QQPolyRingElem}}:
-1
-279936*t
t^3 + 93312
In this branch we get
julia> L[1]
-e[1] - 279936*t*e[2] + (t^3 + 93312)*e[3]
julia> coefficients(L[1])
coefficients iterator of (t^3 + 93312)*e[3] - 279936*t*e[2] - e[1]
julia> collect(coefficients(L[1]))
3-element Vector{AbstractAlgebra.Generic.FracFieldElem{QQPolyRingElem}}:
t^3 + 93312
-279936*t
-1
So the iteration order changed but the result itself is fine.
There was a problem hiding this comment.
@fingolfin : @wdecker should have a look at this to make sure that the changed iteration order does not break any wording that might be refering to a 'first entry' or something similar. It is not about the computation result!.
There was a problem hiding this comment.
I checked and there does not seem to be such a problem. Also in the book there will anyway be the old output, won't it?
This should fix #4303. (@Syz-MS, @afkafkafk13):
The problem for the above issue was not the connection between Oscar and Singular, but the wrong implementation of the comparison function for
lexandinvlexfor modules (which was accidently also described in this wrong way in the Oscar docu).Maybe we need to adjust some tests, we will see.