Project

General

Profile

Bug #1300

CoprimeFactorBasis: mishandles negative args

Added by John Abbott over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Maths Bugs
Start date:
31 Jul 2019
Due date:
% Done:

100%

Estimated time:
1.11 h
Spent time:

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 over 4 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 over 4 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.

Also available in: Atom PDF