Changeset c5323e in git for factory/canonicalform.cc
- Timestamp:
- Mar 26, 1997, 5:32:24 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f5f16d0c85133c4858c7e8a709212263f1f5870b
- Parents:
- c78b18b1fa50e52018c1f01004e35a9cda192bd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/canonicalform.cc
rc78b18b rc5323e 1 1 // emacs editmode for this file is -*- C++ -*- 2 // $Id: canonicalform.cc,v 1. 2 1996-07-02 11:18:32 stobbeExp $2 // $Id: canonicalform.cc,v 1.3 1997-03-26 16:27:09 schmidt Exp $ 3 3 4 4 /* 5 5 $Log: not supported by cvs2svn $ 6 Revision 1.2 1996/07/02 11:18:32 stobbe 7 "initCanonicalForm: now initializes the switch system. 8 " 9 6 10 Revision 1.1 1996/06/13 07:15:50 stobbe 7 11 "CanonicalForm::deriv(x): bug fix, result is now swapped back if x is not … … 15 19 16 20 #include "assert.h" 21 17 22 #include "cf_defs.h" 23 18 24 #include "cf_globals.h" 19 25 #include "canonicalform.h" … … 24 30 #include "gfops.h" 25 31 #include "cf_binom.h" 26 #if defined USE_MEMUTIL && ! defined USE_OLD_MEMMAN32 #if defined (USE_MEMUTIL) && ! defined (USE_OLD_MEMMAN) 27 33 #include "memman.h" 28 34 #endif 29 35 36 #ifndef NOSTREAMIO 30 37 CanonicalForm readCF( istream& ); 31 38 #endif /* NOSTREAMIO */ 32 39 33 40 CanonicalForm::CanonicalForm() : value( CFFactory::basic( (int)0 ) ) … … 413 420 } 414 421 422 #ifndef NOSTREAMIO 415 423 void 416 424 CanonicalForm::print( ostream & os, char * str ) const … … 421 429 value->print( os, str ); 422 430 } 431 #endif /* NOSTREAMIO */ 423 432 424 433 bool … … 999 1008 } 1000 1009 1010 #ifndef NOSTREAMIO 1001 1011 ostream& 1002 1012 operator << ( ostream & os, const CanonicalForm & cf ) … … 1005 1015 return os; 1006 1016 } 1007 1017 #endif /* NOSTREAMIO */ 1018 1019 #ifndef NOSTREAMIO 1008 1020 istream& 1009 1021 operator >> ( istream & is, CanonicalForm & cf ) 1010 1022 { 1011 #ifdef SINGULAR1012 cf = 0;1013 #else1014 1023 cf = readCF( is ); 1015 #endif1016 1024 return is; 1017 1025 } 1026 #endif /* NOSTREAMIO */ 1018 1027 1019 1028 CanonicalForm … … 1125 1134 static bool initialized = false; 1126 1135 if ( ! initialized ) { 1127 #if defined USE_MEMUTIL && ! defined USE_OLD_MEMMAN1136 #if defined (USE_MEMUTIL) && ! defined (USE_OLD_MEMMAN) 1128 1137 (void)mmInit(); 1129 1138 #endif … … 1200 1209 } 1201 1210 } 1202 1211 1203 1212 void 1204 1213 On( int sw ) … … 1261 1270 return CanonicalForm( value->sqrt() ); 1262 1271 } 1263 1272 1264 1273 1265 1274 int … … 1324 1333 } 1325 1334 } 1326
Note: See TracChangeset
for help on using the changeset viewer.