Bug #1300
CoprimeFactorBasis: mishandles negative args
Status:
Closed
Priority:
Normal
Assignee:
Category:
Maths Bugs
Target version:
Description
CoprimeFactorBasis
gives wrong answers when args are negative. Here is a simple example in CoCoA-5
CoprimeFactorBasis([2,-3]); [2]
The result should be
[2, 3]
.
History
#1 Updated by John Abbott almost 5 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 90
- Estimated time set to 0.75 h
Fixed. I'll add some tests.
#2 Updated by John Abbott almost 5 years ago
- Status changed from Feedback to Closed
- Target version changed from CoCoALib-0.99700 to CoCoALib-0.99650 November 2019
- % Done changed from 90 to 100
- Estimated time changed from 0.75 h to 1.11 h
Added a test (to test-bug1.C
).
Corrected name in doc in doc/txt/NumTheory.txt
.