Changeset 0b447e in git


Ignore:
Timestamp:
Apr 8, 2013, 12:54:43 PM (9 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '48f1dd268d0ff74ef2f7dccbf02545425002ddcc')
Children:
b8f8ea1509ff92e49428ea7c5713993cd700fbb6
Parents:
11f05fda6bd40e3d3dd7e6cda2c4f56fccc3632f
git-author:
Martin Lee <martinlee84@web.de>2013-04-08 12:54:43+02:00
git-committer:
Martin Lee <martinlee84@web.de>2013-04-08 14:43:02+02:00
Message:
fix: bug in log derivative computation over field extensions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqBivarUtil.cc

    r11f05f r0b447e  
    468468  for (CFIterator i= logDeriv; i.hasTerms() && !logDeriv.isZero(); i++)
    469469  {
    470     for (ii= i.coeff(); ii.hasTerms(); ii++)
    471       result[ii.exp()] += ii.coeff()*power (x,i.exp());
     470    if (i.coeff().inCoeffDomain())
     471      result[0] += i.coeff()*power (x,i.exp());
     472    else
     473    {
     474      for (ii= i.coeff(); ii.hasTerms(); ii++)
     475        result[ii.exp()] += ii.coeff()*power (x,i.exp());
     476    }
    472477  }
    473478  Q= q;
     
    541546  for (CFIterator i= logDeriv; i.hasTerms() && !logDeriv.isZero(); i++)
    542547  {
    543     for (ii= i.coeff(); ii.hasTerms(); ii++)
    544       result[ii.exp()] += ii.coeff()*power (x,i.exp());
     548    if (i.coeff().inCoeffDomain())
     549      result[0] += i.coeff()*power (x,i.exp());
     550    else
     551    {
     552      for (ii= i.coeff(); ii.hasTerms(); ii++)
     553        result[ii.exp()] += ii.coeff()*power (x,i.exp());
     554    }
    545555  }
    546556  Q= q;
Note: See TracChangeset for help on using the changeset viewer.