Changeset 4132ee in git


Ignore:
Timestamp:
Jul 23, 2015, 11:09:40 AM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
47362dcbb6b4fbb3b9d6cded63720e333b4c97b3654a230847a8318a2a297f1520550f19f34a440165d72f770834146c47c12f86f49af7f3c8cef09d6a52f15f9780f7af3a0ea06d03b4376f61136261
Parents:
0017fdba19465a475d4ccb4e08333f7d3b95d393
Message:
fix: tr. #714 (wp,wp is not a weighted ordering, but a block ordering)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/primdec.lib

    r0017fd r4132ee  
    34133413
    34143414  ideal jkeep=@j;
    3415   if(ordstr(@P)[1]=="w")
     3415  if((ordstr(@P)[1]=="w")&&(size(ringlist(@P)[3])==2)) // weighted ordering
    34163416  {
    34173417    list gnir_l=ringlist(gnir);
  • libpolys/polys/ext_fields/transext.cc

    r0017fd r4132ee  
    230230    }
    231231
    232     poly gcd = singclap_gcd_r( num, den, ntRing );
    233 
    234     if( !p_IsOne(gcd, ntRing) )
    235     {
    236       Print("ERROR in %s:%d: 1 != GCD between num. & den. poly\n",f,l);
    237       Print("GCD: ");  p_Write(gcd, ntRing);
    238       Print("NUM: ");  p_Write(num, ntRing);
    239       Print("DEN: ");  p_Write(den, ntRing);
    240       return FALSE;
    241     }
    242 
    243     p_Delete( &gcd, ntRing );
    244 
     232    if (COM(t)==0)
     233    {
     234      poly gcd = singclap_gcd_r( num, den, ntRing );
     235      if( !p_IsOne(gcd, ntRing) )
     236      {
     237        Print("ERROR in %s:%d: 1 != GCD between num. & den. poly\n",f,l);
     238        Print("GCD: ");  p_Write(gcd, ntRing);
     239        Print("NUM: ");  p_Write(num, ntRing);
     240        Print("DEN: ");  p_Write(den, ntRing);
     241        return FALSE;
     242      }
     243      p_Delete( &gcd, ntRing );
     244    }
    245245    return TRUE;
    246246
     
    13131313              pIter(h);
    13141314            } while(h!=NULL);
    1315             p_ExpVectorDiff(den_f,den_f,den_f,ntRing);
     1315            p_ExpVectorDiff(den_f,den_f,den_f,ntRing);
    13161316            break;
    13171317          }
     
    14351435       to be != 1. */
    14361436    if (p_IsConstant(DEN(f), ntRing) &&
    1437         n_IsOne(p_GetCoeff(DEN(f), ntRing), ntCoeffs))
     1437      n_IsOne(p_GetCoeff(DEN(f), ntRing), ntCoeffs))
    14381438    {
    14391439      /* DEN(f) = 1 needs to be represented by NULL! */
     
    14581458    }
    14591459  }
     1460  p_Delete(&pGcd, ntRing);
    14601461  COM(f) = 0;
    1461   p_Delete(&pGcd, ntRing);
    14621462
    14631463  if( DEN(f) != NULL )
     1464  {
    14641465    if( !n_GreaterZero(pGetCoeff(DEN(f)), ntCoeffs) )
    14651466    {
     
    14741475      }
    14751476    }
     1477  }
    14761478  ntTest(a); // !!!!
    14771479}
Note: See TracChangeset for help on using the changeset viewer.