Changeset aebdf8 in git


Ignore:
Timestamp:
Jul 30, 2014, 2:58:49 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc22d02675885785e1818dd2f838cdc17aaa11ec')
Children:
6ae00cadb996ac82dcc3b5062290c6dc9f211731
Parents:
98148c7263409c3b3ec3de55b6ac6e9b992aa2f0
git-author:
Martin Lee <martinlee84@web.de>2014-07-30 14:58:49+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-07-31 12:08:29+02:00
Message:
fix: wrong handling of SW_RATIONAL
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/facAlgFunc.cc

    r98148c7 raebdf8  
    383383        CanonicalForm numinv, deninv;
    384384        numinv= QuasiInverse (tmp.getFirst(), LC (h), tmp.getFirst().mvar());
    385 
    386         if (getCharacteristic() == 0)
    387           Off (SW_RATIONAL);
    388385        h *= numinv;
    389386        h= reduce (h, tmp.getFirst());
  • factory/facAlgFuncUtil.cc

    r98148c7 raebdf8  
    608608  CanonicalForm pi, pi1, q, t0, t1, Hi, bi, pi2;
    609609  bool isRat= isOn (SW_RATIONAL);
     610  pi= f;
     611  pi1= g;
     612  if (isRat)
     613  {
     614    pi *= bCommonDen (pi);
     615    pi1 *= bCommonDen (pi1);
     616  }
    610617  CanonicalForm m,tmp;
    611618  if (isRat && getCharacteristic() == 0)
    612619    Off (SW_RATIONAL);
    613   pi= f/content (f,x);
    614   pi1= g/content (g,x);
     620
     621  pi= pi/content (pi,x);
     622  pi1= pi1/content (pi1,x);
    615623
    616624  t0= 0;
     
    647655  }
    648656  t1 /= gcd (pi1, t1);
    649   if (!isRat && getCharacteristic() == 0)
    650     Off (SW_RATIONAL);
     657  if (isRat && getCharacteristic() == 0)
     658    On (SW_RATIONAL);
    651659  return t1;
    652660}
Note: See TracChangeset for help on using the changeset viewer.