Changeset 9b87a3 in git for libfac/factor
- Timestamp:
- Apr 8, 2008, 6:19:10 PM (16 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- f307021ad1ffaabeac4f3f688f2140c724143680
- Parents:
- 6ad5ce630be2eb27e4e1453cd679e97bca10deaa
- Location:
- libfac/factor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libfac/factor/Factor.cc
r6ad5ce r9b87a3 1 1 /* Copyright 1996 Michael Messollen. All rights reserved. */ 2 2 /////////////////////////////////////////////////////////////////////////////// 3 /* $Id: Factor.cc,v 1.4 4 2008-03-18 17:46:15Singular Exp $ */3 /* $Id: Factor.cc,v 1.45 2008-04-08 16:19:10 Singular Exp $ */ 4 4 static const char * errmsg = "\nYou found a bug!\nPlease inform singular@mathematik.uni-kl.de\nPlease include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you."; 5 5 /////////////////////////////////////////////////////////////////////////////// … … 300 300 #ifndef NOSTREAMIO 301 301 CERR << "libfac: ERROR: not_monic1: case lt is a sum.\n" 302 << rcsid <<errmsg << "\n";302 << errmsg << "\n"; 303 303 #endif 304 304 #endif … … 320 320 #ifndef NOSTREAMIO 321 321 CERR << "libfac: ERROR: not_monic2: case lt is a sum.\n" 322 << rcsid <<errmsg << "\n";322 << errmsg << "\n"; 323 323 #endif 324 324 #endif … … 524 524 #ifndef NOSTREAMIO 525 525 CERR << "libfac: spezializePoly ERROR: Working over given extension-field not yet implemented!\n" 526 << rcsid <<errmsg << "\n";526 << errmsg << "\n"; 527 527 #endif 528 528 #endif … … 774 774 #ifndef NOSTREAMIO 775 775 CERR << "libfac: Factorize: ERROR: Not able to find a valid specialization!\n" 776 << rcsid <<errmsg << "\n";776 << errmsg << "\n"; 777 777 #else 778 778 ; … … 892 892 893 893 DEBINCLEVEL(CERR, "Factorize"); 894 DEBOUTMSG(CERR, rcsid);895 894 DEBOUTLN(CERR, "Called with F= ", F); 896 895 if ( getCharacteristic() == 0 ) … … 911 910 // search an "optimal" main variavble 912 911 int mv=F.level(); 913 if ( mv != LEVELBASE && ! F.isUnivariate() )912 if ((mv != LEVELBASE) && (! F.isUnivariate()) ) 914 913 { 915 914 mv=find_mvar(F); … … 1151 1150 1152 1151 DEBINCLEVEL(CERR, "Factorize"); 1153 DEBOUTMSG(CERR, rcsid);1154 1152 DEBOUTLN(CERR, "Called with F= ", F); 1155 1153 if ( getCharacteristic() == 0 ) … … 1335 1333 /* 1336 1334 $Log: not supported by cvs2svn $ 1335 Revision 1.44 2008/03/18 17:46:15 Singular 1336 *hannes: gcc 4.2 1337 1337 1338 Revision 1.43 2008/03/18 10:12:21 Singular 1338 1339 *hannes: format -
libfac/factor/SqrFree.cc
r6ad5ce r9b87a3 2 2 /////////////////////////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 /* $Id: SqrFree.cc,v 1.1 7 2008-03-18 17:46:15Singular Exp $ */4 /* $Id: SqrFree.cc,v 1.18 2008-04-08 16:19:10 Singular Exp $ */ 5 5 static const char * errmsg = "\nYou found a bug!\nPlease inform singular@mathematik.uni-kl.de\n Please include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you."; 6 6 /////////////////////////////////////////////////////////////////////////////// … … 200 200 #ifndef NOSTREAMIO 201 201 CERR << "\nlibfac: ERROR: SqrFreeTest: we should never fall trough here!\n" 202 << rcsid <<errmsg << "\n";202 << errmsg << "\n"; 203 203 #endif 204 204 #endif … … 352 352 #ifndef NOSTREAMIO 353 353 CERR << "\nlibfac: ERROR: SqrFreed: we should never fall trough here!\n" 354 << rcsid <<errmsg << "\n";354 << errmsg << "\n"; 355 355 #endif 356 356 #endif … … 370 370 371 371 DEBINCLEVEL(CERR, "SqrFreeMV"); 372 DEBOUTMSG(CERR, rcsid);373 372 DEBOUTLN(CERR,"Called with f= ", f); 374 373 … … 440 439 /* 441 440 $Log: not supported by cvs2svn $ 441 Revision 1.17 2008/03/18 17:46:15 Singular 442 *hannes: gcc 4.2 443 442 444 Revision 1.16 2008/03/18 10:12:59 Singular 443 445 *hannes: typo -
libfac/factor/homogfactor.cc
r6ad5ce r9b87a3 1 1 /* Copyright 1997 Michael Messollen. All rights reserved. */ 2 2 //////////////////////////////////////////////////////////// 3 // $Id: homogfactor.cc,v 1. 9 2008-03-18 17:46:16Singular Exp $3 // $Id: homogfactor.cc,v 1.10 2008-04-08 16:19:10 Singular Exp $ 4 4 //////////////////////////////////////////////////////////// 5 5 // FACTORY - Includes … … 142 142 DEBINCLEVEL(CERR, "HomogFactor"); 143 143 Variable xn = get_max_degree_Variable(g); 144 out_cf("HomogFactor:",g,"\n"); 144 145 int d_xn = degree(g,xn); 145 146 CanonicalForm F = g(1,xn); … … 148 149 DEBOUTLN(CERR, "d_xn= ", d_xn); 149 150 DEBOUTLN(CERR, "F= ", F); 151 out_cf("HomogFactor:subst ",F,"\n"); 150 152 151 153 // should we do this for low degree polys g ? e.g. quadratic? … … 157 159 { 158 160 CFMap n; 159 Intermediatelist = Factorized(compress(F,n), minpoly, Mainvar); 161 if (minpoly.isZero()) 162 Intermediatelist = Factorize(compress(F,n), 1); 163 else 164 Intermediatelist = Factorized(compress(F,n), minpoly, Mainvar); 160 165 for ( j=Intermediatelist; j.hasItem(); j++ ) 161 166 Homoglist.append(CFFactor( n(j.getItem().factor()), j.getItem().exp()) ); 162 167 } 163 168 else 164 Homoglist = Factorize2(F, minpoly); 169 { 170 if (minpoly.isZero()) 171 Homoglist = factorize(F); 172 else 173 Homoglist = Factorize2(F,minpoly); 174 } 165 175 // Now we have uncompressed factors in Homoglist 166 176 DEBOUTLN(CERR, "F factors as: ", Homoglist); 167 177 CFFList Unhomoglist; 168 178 CanonicalForm unhomogelem; 169 if ((! minpoly.isZero()) &&(getCharacteristic() == 0) )179 if ((!(minpoly.isZero())) &&(getCharacteristic() == 0) ) 170 180 { 171 181 for ( j=Homoglist; j.hasItem(); j++ ) … … 187 197 unhomogelem= homogenize(j.getItem().factor(),xn); 188 198 DEBOUTLN(CERR, " that is ", unhomogelem); 199 out_cf("unhomogelem:",unhomogelem,"\n"); 189 200 Unhomoglist.append(CFFactor(unhomogelem,j.getItem().exp())); 190 201 d_xn -= degree(unhomogelem,xn)*j.getItem().exp(); … … 201 212 /* 202 213 $Log: not supported by cvs2svn $ 214 Revision 1.9 2008/03/18 17:46:16 Singular 215 *hannes: gcc 4.2 216 203 217 Revision 1.8 2007/10/25 14:45:41 Singular 204 218 *hannes: homgfactor for alg.ext of Q
Note: See TracChangeset
for help on using the changeset viewer.