Changeset fc4977 in git for libpolys/polys/clapconv.cc


Ignore:
Timestamp:
Nov 8, 2011, 1:46:01 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd25190065115c859833252500a64cfb7b11e3a50')
Children:
146c6031e29bacb7405aa0a52f67591c3cfd1d1f
Parents:
c3238c9cf73749e83476377e7c488cf63eca07fd
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-11-08 13:46:01+01:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:14:11+01:00
Message:
fix: conversion of transext to/from factory
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapconv.cc

    rc3238c9 rfc4977  
    6464    poly term = p_Init(r);
    6565    pNext( term ) = NULL;
     66    int varoffset=r->cf->factoryVarOffset;
    6667    for ( int i = 1; i <= r->N; i++ )
    67       p_SetExp( term, i, exp[i], r);
     68      p_SetExp( term, i-varoffset, exp[i], r);
    6869    pGetCoeff( term )=r->cf->convFactoryNSingN(f, r->cf);
    6970    p_Setm( term, r );
     
    9293    if (errorreported) break;
    9394    setChar=FALSE;
     95    int varoffset=r->cf->factoryVarOffset;
    9496    for ( int i = n; i >0; i-- )
    9597    {
    9698      if ( (e = p_GetExp( p, i, r)) != 0 )
    97         term *= power( Variable( i ), e );
     99        term *= power( Variable( i+varoffset ), e );
    98100    }
    99101    result += term;
Note: See TracChangeset for help on using the changeset viewer.