bug in rawGCDRingElement
Nobody has claimed this yet.
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
This bug has haunted a number of things related to LocalRings over QQ forever:
```m2
i1 : R = QQ; gcd(2_R, 8_R)
o2 = 2
o2 : QQ
i3 : R = QQ[x]; gcd(2_R, 8_R)
o4 = 1
o4 : R
```
You can try calling `showcf` to get the values of these three to see where this is happening:
https://github.com/Macaulay2/M2/blob/deb37e0a86df12c65ea1cdb7a83d960e7c1c06f7/M2/Macaulay2/e/interface/factory.cpp#L524-L526
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the two gcd examples in Macaulay2 and use showcf on the resulting values. Start at M2/Macaulay2/e/interface/factory.cpp lines 524-526 and trace rawGCDRingElement; done means the examples return 2 over QQ and 1 over QQ[x] without the reported inconsistency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100