Changeset 17a1363 in git


Ignore:
Timestamp:
Apr 23, 2013, 6:24:03 PM (9 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '48f1dd268d0ff74ef2f7dccbf02545425002ddcc')
Children:
1db71604481be0777098a1691c569aee6b93638f
Parents:
59215406d7ac613efcad2b98daccd517fc6b1567
git-author:
Martin Lee <martinlee84@web.de>2013-04-23 18:24:03+02:00
git-committer:
Martin Lee <martinlee84@web.de>2013-05-02 11:42:47+02:00
Message:
chg: get normalization right
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapsing.cc

    r592154 r17a1363  
    10711071    iter++;
    10721072  }
     1073  bool isRat= isOn (SW_RATIONAL);
     1074  if (!isRat)
     1075    On (SW_RATIONAL);
    10731076  for (; iter.hasItem(); iter++, i++)
    10741077  {
    10751078    (**exps)[i]= iter.getItem().exp();
    10761079    alpha= iter.getItem().minpoly().mvar();
    1077     if (iter.getItem().minpoly().isOne()) //TODO make sure isOn (SW_RATIONAL) == true
    1078       lead /= bCommonDen (iter.getItem().factor());
     1080    if (iter.getItem().minpoly().isOne())
     1081      lead /= power (bCommonDen (iter.getItem().factor()), iter.getItem().exp());
    10791082    else
    1080       lead /= power (bCommonDen (iter.getItem().factor()), degree (iter.getItem().minpoly()));
     1083      lead /= power (power (bCommonDen (iter.getItem().factor()), degree (iter.getItem().minpoly())), iter.getItem().exp());
    10811084    res->m[i]= convFactoryPSingTrP (replacevar (iter.getItem().factor()*bCommonDen (iter.getItem().factor()), alpha, x), r);
    10821085    if (iter.getItem().minpoly().isOne())
     
    10921095    numFactors += count;
    10931096  }
     1097  if (!isRat)
     1098    Off (SW_RATIONAL);
    10941099
    10951100  (**exps)[0]= 1;
Note: See TracChangeset for help on using the changeset viewer.