Changeset ba52f58 in git
- Timestamp:
- Jul 8, 2015, 6:41:19 PM (8 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- e9478bb30a6f3a2d77328b3805644a035ac3e934
- Parents:
- 3f2942fb2df02ef47a6e1125188f5c588a05e8d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
r3f2942 rba52f58 191 191 if (! nlIsInteger( p_GetCoeff(p, ntRing), ntCoeffs) ) 192 192 { 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(); 194 195 return FALSE; 195 196 } … … 205 206 if (! nlIsInteger( p_GetCoeff(p, ntRing), ntCoeffs) ) 206 207 { 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(); 208 210 return FALSE; 209 211 } … … 213 215 if( p_IsConstant(den, ntRing) ) 214 216 { 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); 216 220 return FALSE; 217 221 } … … 219 223 if( !n_IsOne(pGetCoeff(den), ntCoeffs) ) 220 224 { 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); 222 228 return FALSE; 223 229 } … … 226 232 poly gcd = singclap_gcd_r( num, den, ntRing ); 227 233 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); 231 240 return FALSE; 232 241 }
Note: See TracChangeset
for help on using the changeset viewer.