Ignore:
Timestamp:
Feb 20, 2013, 7:02:58 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0723d52f38b257cac43d6e4c57aa7a5d243f5002628f663dc4f87ee80a30f2fabcac34fba9b2b144
Parents:
ef7324f0fe134054c1000413c4d1fa21ccc163b1
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-20 19:02:58+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-20 19:17:44+01:00
Message:
fix: ntDiv: normlization of .../(-1)
File:
1 edited

Legend:

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

    ref7324 r644b31  
    850850  fraction result = (fraction)omAlloc0Bin(fractionObjectBin);
    851851  NUM(result) = g;
     852  if (!n_GreaterZero(pGetCoeff(f),ntRing->cf))
     853  {
     854    g=p_Neg(g,ntRing);
     855    f=p_Neg(f,ntRing);
     856    NUM(result) = g;
     857  }
    852858  if (!p_IsConstant(f,ntRing) || !n_IsOne(pGetCoeff(f),ntRing->cf))
     859  {
    853860    DEN(result) = f;
     861  }
    854862  COM(result) = COM(fa) + COM(fb) + MULT_COMPLEXITY;
    855863  heuristicGcdCancellation((number)result, cf);
Note: See TracChangeset for help on using the changeset viewer.