Changeset 20722e4 in git
- Timestamp:
- Apr 28, 2006, 3:46:29 PM (17 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- a285490a201ea1e883f387408479c5758aaff48f
- Parents:
- f45bfb991cabced656e450cbed9e85720c469e54
- Location:
- libfac
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libfac/charset/csutil.cc
rf45bfb r20722e4 2 2 //////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 static char * rcsid = "$Id: csutil.cc,v 1. 9 2003-05-28 11:52:52Singular Exp $";4 static char * rcsid = "$Id: csutil.cc,v 1.10 2006-04-28 13:45:29 Singular Exp $"; 5 5 ///////////////////////////////////////////////////////////// 6 6 // FACTORY - Includes … … 227 227 CanonicalForm rem=f; 228 228 229 if ( rem!=0){229 if ( !(rem.isZero()) ){ 230 230 if ( getCharacteristic() > 0 ) 231 231 return num((rem/lc(rem))); … … 312 312 313 313 for ( CFIterator j=init; j.hasTerms(); j++ ) 314 if ( j.coeff() != 1) count += 1;314 if (!(j.coeff().isOne()) ) count += 1; 315 315 // if ( init != 1 ){ 316 316 // cout << "nopower: f is " << init << endl; … … 873 873 /* 874 874 $Log: not supported by cvs2svn $ 875 Revision 1.9 2003/05/28 11:52:52 Singular 876 *pfister/hannes: newfactoras, alg_gcd, divide (see bug_33) 877 875 878 Revision 1.8 2002/10/24 17:22:22 Singular 876 879 * hannes: factoring in alg.ext., alg_gcd, NTL stuff -
libfac/factor/Factor.cc
rf45bfb r20722e4 1 1 /* Copyright 1996 Michael Messollen. All rights reserved. */ 2 2 /////////////////////////////////////////////////////////////////////////////// 3 static char * rcsid = "$Id: Factor.cc,v 1.2 1 2005-12-12 18:02:03Singular Exp $ ";3 static char * rcsid = "$Id: Factor.cc,v 1.22 2006-04-28 13:46:29 Singular Exp $ "; 4 4 static char * errmsg = "\nYou found a bug!\nPlease inform (Michael Messollen) michael@math.uni-sb.de \nPlease include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you."; 5 5 /////////////////////////////////////////////////////////////////////////////// … … 652 652 ffuni = mygcd(f,ff); 653 653 TIMING_END(discr_time); 654 if ( ffuni != 1){ //discriminante nonzero: split poly654 if ( !(ffuni.isOne()) ){ //discriminante nonzero: split poly 655 655 DEBOUTLN(cout,"Nontrivial GCD of f= ", f); 656 656 DEBOUTLN(cout," and @f= ", ff); … … 1124 1124 /* 1125 1125 $Log: not supported by cvs2svn $ 1126 Revision 1.21 2005/12/12 18:02:03 Singular 1127 *hannes: use sorting option in Factorize 1128 1126 1129 Revision 1.20 2005/12/05 15:47:32 Singular 1127 1130 *hannes: is_homogeneous -> factory: isHomogeneous -
libfac/factor/SqrFree.cc
rf45bfb r20722e4 2 2 /////////////////////////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 static char * rcsid = "$Id: SqrFree.cc,v 1. 8 2002-08-19 11:11:33Singular Exp $";4 static char * rcsid = "$Id: SqrFree.cc,v 1.9 2006-04-28 13:46:29 Singular Exp $"; 5 5 static char * errmsg = "\nYou found a bug!\nPlease inform (Michael Messollen) michael@math.uni-sb.de .\n Please include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you."; 6 6 /////////////////////////////////////////////////////////////////////////////// … … 387 387 if ( i.getItem().exp() == j ) elem *= i.getItem().factor(); 388 388 } 389 if ( elem != 1) outputlist.append(CFFactor(elem,j));389 if ( !(elem.isOne()) ) outputlist.append(CFFactor(elem,j)); 390 390 } 391 391 elem=1; … … 403 403 /* 404 404 $Log: not supported by cvs2svn $ 405 Revision 1.8 2002/08/19 11:11:33 Singular 406 * hannes/pfister: alg_gcd etc. 407 405 408 Revision 1.7 2001/08/08 14:27:38 Singular 406 409 *hannes: Dan's HAVE_SINGULAR_ERROR
Note: See TracChangeset
for help on using the changeset viewer.