Changeset 7a81a69 in git for factory/canonicalform.cc
- Timestamp:
- Jun 13, 1996, 9:15:50 AM (28 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 1986a2fee92863e911c04f6574a96cc4caee8fa4
- Parents:
- f59b88fb5075f45eedd00f61e2cb4e7c27bacdce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/canonicalform.cc
rf59b88 r7a81a69 1 1 // emacs editmode for this file is -*- C++ -*- 2 // $Id: canonicalform.cc,v 1. 0 1996-05-17 10:59:42stobbe Exp $2 // $Id: canonicalform.cc,v 1.1 1996-06-13 07:15:50 stobbe Exp $ 3 3 4 4 /* 5 5 $Log: not supported by cvs2svn $ 6 Revision 1.0 1996/05/17 10:59:42 stobbe 7 Initial revision 8 6 9 */ 7 10 … … 358 361 if ( i.exp() > 0 ) 359 362 res += power( y, i.exp()-1 ) * i.coeff() * i.exp(); 360 return res;363 return (y==x) ? res : swapvar( res, x, y ); 361 364 } 362 365 }
Note: See TracChangeset
for help on using the changeset viewer.