Changeset 6ad7e6 in git for libpolys


Ignore:
Timestamp:
Nov 10, 2012, 4:37:11 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
Children:
780b5285f9d867d03d9da5298c36e8bedf88eaf4
Parents:
a2da9ea07b27576399fa96413ca380533784bd58
Message:
fix: ntNormalize (no negative DEN.)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    ra2da9e r6ad7e6  
    12391239void ntNormalize (number &a, const coeffs cf)
    12401240{
    1241   definiteGcdCancellation(a, cf, FALSE);
     1241  if ((a!=NULL)&&(DEN(a)!=NULL))
     1242  {
     1243    definiteGcdCancellation(a, cf, FALSE);
     1244    if ((DEN(a)!=NULL)
     1245    &&(!n_GreaterZero(pGetCoeff(DEN(a)),ntRing->cf)))
     1246    {
     1247      NUM(a)=p_Neg(NUM(a),ntRing);
     1248      DEN(a)=p_Neg(DEN(a),ntRing);
     1249    }
     1250  }
    12421251  ntTest(a); // !!!!
    12431252}
Note: See TracChangeset for help on using the changeset viewer.