Changeset ba52f58 in git


Ignore:
Timestamp:
Jul 8, 2015, 6:41:19 PM (8 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
e9478bb30a6f3a2d77328b3805644a035ac3e934
Parents:
3f2942fb2df02ef47a6e1125188f5c588a05e8d2
Message:
Better Error output (more particulars) in ntTest
File:
1 edited

Legend:

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

    r3f2942 rba52f58  
    191191      if (! nlIsInteger( p_GetCoeff(p, ntRing), ntCoeffs) )
    192192      {
    193         Print("ERROR: non-integer Q coeff in num. poly in %s:%d\n",f,l);       
     193        Print("ERROR in %s:%d: non-integer Q coeff in num. poly\n",f,l);
     194        Print("TERM: ");  p_wrp(p, ntRing); PrintLn();
    194195        return FALSE;     
    195196      }
     
    205206        if (! nlIsInteger( p_GetCoeff(p, ntRing), ntCoeffs) )
    206207        {
    207           Print("ERROR: non-integer Q coeff in den. poly in %s:%d\n",f,l);       
     208          Print("ERROR in %s:%d: non-integer Q coeff in den. poly\n",f,l);       
     209          Print("TERM: "); p_wrp(p, ntRing);  PrintLn();
    208210          return FALSE;     
    209211        }
     
    213215      if( p_IsConstant(den, ntRing) )
    214216      {
    215         Print("ERROR: constant den. poly / Zp in %s:%d\n",f,l);       
     217        Print("ERROR in %s:%d: constant den. poly / Zp\n",f,l);
     218        Print("NUM: ");  p_Write(num, ntRing);
     219        Print("DEN: ");  p_Write(den, ntRing);
    216220        return FALSE;
    217221      }
     
    219223      if( !n_IsOne(pGetCoeff(den), ntCoeffs) )
    220224      {       
    221         Print("ERROR: non-monic den. poly / Zp in %s:%d\n",f,l);       
     225        Print("ERROR in %s:%d: non-monic den. poly / Zp\n",f,l);       
     226        Print("NUM: ");  p_Write(num, ntRing);
     227        Print("DEN: ");  p_Write(den, ntRing);
    222228        return FALSE;
    223229      }
     
    226232    poly gcd = singclap_gcd_r( num, den, ntRing );
    227233
    228     if( !(p_IsConstant(gcd, ntRing) && (n_IsOne(pGetCoeff(gcd), ntCoeffs))) )
    229     {
    230       Print("ERROR: 1 != GCD between num. & den. poly in %s:%d\n",f,l);       
     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);
    231240      return FALSE;
    232241    }
Note: See TracChangeset for help on using the changeset viewer.