Changeset 37c7fc1 in git
- Timestamp:
- May 19, 2011, 8:45:43 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- 09ed7738e7d4dd96c01950a6f0736d8581f333d2
- Parents:
- 4a2260efc22c19ac8eaf58d529af8decbb9420bb
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-19 20:45:43+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:13+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
r4a2260e r37c7fc1 1483 1483 number lc = p_GetCoeff(p, r); 1484 1484 if (n_IsOne(lc, r->cf)) return; 1485 number n = n_Init(1, r->cf); 1486 p_SetCoeff(p, n, r); 1485 1486 if( pNext(p) == NULL ) 1487 { 1488 p_SetCoeff(p, n_Init(1, r->cf), r); // will delete the leading coeff 1st! 1489 return; 1490 } 1491 1492 // TODO: consider unsing 1xn_Inverse + n_Mult instead of multiple n_Div 1493 p_SetCoeff0(p, n_Init(1, r->cf), r); // no coeff destruction! 1494 1487 1495 p = pIter(p); 1496 1488 1497 while (p != NULL) 1489 1498 {
Note: See TracChangeset
for help on using the changeset viewer.