Bug #186
LCM(0,x)
Status:
Closed
Priority:
Normal
Assignee:
Category:
Incomplete function
Target version:
Description
Use QQ[x]; LCM(0,x); --> type error :-( LCM(x-x,x); --> WRONG ANSWER!!!
Bug reported by Giulia Bianco.
Fix, and update tests.
Might be a CoCoALib bug.
History
#1 Updated by John Abbott almost 12 years ago
- % Done changed from 0 to 70
Fixed the wrong result -- it was a bug in CoCoALib.
Fixed the type error (in Builtin.C
) but fix is rather ugly.
Must update tests, and maybe doc.
Note gcd/lcm with a RAT
will still give a type error; this is as we want!
#2 Updated by John Abbott almost 12 years ago
- Status changed from New to Closed
- % Done changed from 70 to 100
Added new test test-RingElem1
which currently just does some simple sanity checks on gcd
and lcm
.
Cleaned up the doc for gcd/lcm.
Closing the issue despite the ugliness of the modification to Builtin.C
.
#3 Updated by Anna Maria Bigatti almost 12 years ago
- Category set to Incomplete function
- Assignee set to John Abbott
- Target version set to CoCoA-5.0.3