Changeset aebdf8 in git for factory/facAlgFuncUtil.cc


Ignore:
Timestamp:
Jul 30, 2014, 2:58:49 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.