Changeset 4254a7f in git for libpolys


Ignore:
Timestamp:
Sep 16, 2013, 4:55:47 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e3572aeabbaf031b22dbbac237937700676a8248
Parents:
12d61707b29797f7bf3e42e5b9f0a01e937da42b
git-author:
Martin Lee <martinlee84@web.de>2013-09-16 16:55:47+02:00
git-committer:
Martin Lee <martinlee84@web.de>2013-09-27 11:27:58+02:00
Message:
chg: make denominator monic if over a transcendental field extension of a finite field
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r12d617 r4254a7f  
    13871387       DEN(f), or both, due to previous arithmetics. The next call will
    13881388       remove those nested fractions, in case there are any. */
    1389     if (nCoeff_is_Zp(ntCoeffs) && p_IsConstant (DEN (f), ntRing))
     1389    if (nCoeff_is_Zp(ntCoeffs))
    13901390    {
    13911391      NUM (f) = p_Div_nn (NUM (f), p_GetCoeff (DEN(f),ntRing), ntRing);
    1392       p_Delete(&DEN (f), ntRing);
    1393       DEN (f) = NULL;
    1394       COM (f) = 0;
     1392      if (p_IsConstant (DEN (f), ntRing))
     1393      {
     1394        p_Delete(&DEN (f), ntRing);
     1395        DEN (f) = NULL;
     1396      }
     1397      else
     1398      {
     1399        p_Norm (DEN (f),ntRing);
     1400      }
    13951401    } else if (nCoeff_is_Q(ntCoeffs)) handleNestedFractionsOverQ(f, cf);
    13961402  }
     
    14071413    else
    14081414    {
    1409       if (nCoeff_is_Zp(ntCoeffs) && p_IsConstant (DEN (f), ntRing))
     1415      if (nCoeff_is_Zp(ntCoeffs))
    14101416      {
    14111417        NUM (f) = p_Div_nn (NUM (f), p_GetCoeff (DEN(f),ntRing), ntRing);
    1412         p_Delete(&DEN (f), ntRing);
    1413         DEN (f) = NULL;
    1414         COM (f) = 0;
     1418        if (p_IsConstant (DEN (f), ntRing))
     1419        {
     1420          p_Delete(&DEN (f), ntRing);
     1421          DEN (f) = NULL;
     1422        }
     1423        else
     1424        {
     1425          p_Norm (DEN (f),ntRing);
     1426        }
    14151427      }
    14161428    }
Note: See TracChangeset for help on using the changeset viewer.