Changeset 74dcead in git


Ignore:
Timestamp:
Jun 30, 2015, 12:33:49 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
43b04d2d8385c988fe1b69e545f48f527a9e2be1f34cd445520f5220554ca71a6324d2a0ecd2c7f6
Parents:
2a4231766997cb703074cd965636c35b364d526d
Message:
fix: div by constant while mapping transExt.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    r2a4231 r74dcead  
    38473847    if( !DENIS1((fraction)z) )
    38483848    {
    3849       if (p_IsConstant(DEN((fraction)z),srcExtRing))
    3850       {
    3851         number n=pGetCoeff(DEN((fraction)z));
    3852         zz=p_Div_nn(zz,n,srcExtRing);
    3853         p_Normalize(zz,srcExtRing);
    3854       }
    3855       else
     3849      if (!p_IsConstant(DEN((fraction)z),srcExtRing))
    38563850        WarnS("Not defined: Cannot map a rational fraction and make a polynomial out of it! Ignoring the denumerator.");
    38573851    }
     
    38853879    qq = p_PermPoly(zz, par_perm-1, srcExtRing, dst, nMap, NULL, rVar (srcExtRing)-1);
    38863880
     3881  if(nCoeff_is_transExt(srcCf)
     3882  && (!DENIS1((fraction)z))
     3883  && p_IsConstant(DEN((fraction)z),srcExtRing))
     3884  {
     3885    number n=nMap(pGetCoeff(DEN((fraction)z)),srcExtRing->cf, dstCf);
     3886    qq=p_Div_nn(qq,n,dst);
     3887    n_Delete(&n,dstCf);
     3888    p_Normalize(qq,dst);
     3889  }
    38873890  p_Test (qq, dst);
    3888 
    3889 //       poly p_PermPoly (poly p, int * perm, const ring oldRing, const ring dst, nMapFunc nMap, int *par_perm, int OldPar)
    3890 
    3891 //  assume( FALSE );  WarnS("longalg missing 2");
    38923891
    38933892  return qq;
Note: See TracChangeset for help on using the changeset viewer.