Changeset 625105 in git for libfac/charset/alg_factor.cc
- Timestamp:
- Jul 8, 2005, 11:18:15 AM (18 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- f3a8c2e6db3e7e4362930d7c847a62d8453daf82
- Parents:
- 90c1ebba9b0c011ddb3f041df9b6a41d78188230
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfac/charset/alg_factor.cc
r90c1eb r625105 3 3 // emacs edit mode for this file is -*- C++ -*- 4 4 //////////////////////////////////////////////////////////// 5 static char * rcsid = "$Id: alg_factor.cc,v 1.1 3 2004-12-10 10:15:05 Singular Exp $";5 static char * rcsid = "$Id: alg_factor.cc,v 1.14 2005-07-08 09:18:15 Singular Exp $"; 6 6 //////////////////////////////////////////////////////////// 7 7 // FACTORY - Includes … … 109 109 static CanonicalForm 110 110 resultante( const CanonicalForm & f, const CanonicalForm& g, const Variable & v ){ 111 return resultant(f,g,v); 111 bool on_rational = isOn(SW_RATIONAL); 112 On(SW_RATIONAL); 113 CanonicalForm cd = bCommonDen( f ); 114 CanonicalForm fz = f * cd; 115 cd = bCommonDen( g ); 116 CanonicalForm gz = g * cd; 117 if (!on_rational) Off(SW_RATIONAL); 118 119 return resultant(fz,gz,v); 112 120 113 121 CanonicalForm h, beta, help, F, G; … … 359 367 gcd0( CanonicalForm f, CanonicalForm g ){ 360 368 int charac= getCharacteristic(); 369 int save=isOn(SW_RATIONAL); 361 370 setCharacteristic(0); Off(SW_RATIONAL); 362 371 CanonicalForm ff= mapinto(f), gg= mapinto(g); 363 372 CanonicalForm result= gcd(ff,gg); 364 setCharacteristic(charac); On(SW_RATIONAL); 373 setCharacteristic(charac); 374 if (save) On(SW_RATIONAL); 365 375 return mapinto(result); 366 376 } … … 809 819 /* 810 820 $Log: not supported by cvs2svn $ 821 Revision 1.13 2004/12/10 10:15:05 Singular 822 *pohl: AlgExtGenerator etc. 823 811 824 Revision 1.12 2003/02/18 11:09:25 Singular 812 825 * hannes: alg_gcd(f,f'=0) get a special handling
Note: See TracChangeset
for help on using the changeset viewer.