Changeset ef7324 in git


Ignore:
Timestamp:
Feb 20, 2013, 7:02:11 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cbf866d4f8c3861325311c042cb2033c053453b2')
Children:
644b311072b1277f612b8e3d8ad80e23a56d5ec0
Parents:
f769fd0fbf5b7ea0f1ffb3a9380350de652caada
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-20 19:02:11+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-20 19:17:44+01:00
Message:
fix: nlPower with exp==0 return 1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/longrat.cc

    rf769fd0 ref7324  
    935935{
    936936  *u = INT_TO_SR(0); // 0^e, e!=0
    937   if (!nlIsZero(x,r))
     937  if (exp==0)
     938    *u= INT_TO_SR(1);
     939  else if (!nlIsZero(x,r))
    938940  {
    939941    nlTest(x, r);
     
    973975    }
    974976  }
    975   else if (exp==0)
    976     *u = INT_TO_SR(1); // 0^0
    977977#ifdef LDEBUG
    978978  if (exp<0) Print("nlPower: neg. exp. %d\n",exp);
Note: See TracChangeset for help on using the changeset viewer.