Changeset e56eb1a in git


Ignore:
Timestamp:
Dec 6, 2012, 3:55:39 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
9f4478c6aeef3d7c745ba2ee7f65f37f65b2ade5
Parents:
7d62506924687f1914af2e044e72b7886ce66aa3
git-author:
Martin Lee <martinlee84@web.de>2012-12-06 15:55:39+01:00
git-committer:
Martin Lee <martinlee84@web.de>2012-12-07 10:46:35+01:00
Message:
fix: ntClearDenominators
Location:
libpolys/polys
Files:
2 edited

Legend:

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

    r7d6250 re56eb1a  
    12391239void ntNormalize (number &a, const coeffs cf)
    12401240{
    1241   if ((a!=NULL)&&(DEN(a)!=NULL))
     1241  if ((a!=NULL))
    12421242  {
    12431243    definiteGcdCancellation(a, cf, FALSE);
     
    18621862    ntNormalize(n, cf);
    18631863
    1864     fraction f = (fraction)n;
     1864    fraction f = (fraction)ntGetDenom (n, cf);
    18651865
    18661866    assume( f != NULL );
    18671867
    1868     const poly den = DEN(f);
     1868    const poly den = NUM(f);
    18691869
    18701870    if( den == NULL ) // ?? / 1 ?
     
    18791879      // TODO: move the following to factory?
    18801880      poly gcd = singclap_gcd(p_Copy(cand, R), p_Copy(den, R), R); // gcd(cand, den) is monic no mater leading coeffs! :((((
     1881      if (nCoeff_is_Q (Q))
     1882      {
     1883        number LcGcd= n_Gcd (p_GetCoeff (cand, R), p_GetCoeff(den, R), Q);
     1884        gcd = p_Mult_nn(gcd, LcGcd, R);
     1885      }
    18811886//      assume( n_IsOne(pGetCoeff(gcd), Q) ); // TODO: this may be wrong...
    18821887      cand = p_Mult_q(cand, p_Copy(den, R), R); // cand *= den
  • libpolys/polys/monomials/p_polys.cc

    r7d6250 re56eb1a  
    19081908static number p_InitContent(poly ph, const ring r);
    19091909
    1910 #define CLEARENUMERATORS 0
     1910#define CLEARENUMERATORS 1
    19111911
    19121912void p_Content(poly ph, const ring r)
Note: See TracChangeset for help on using the changeset viewer.