- Timestamp:
- Mar 13, 1998, 6:03:49 PM (26 years ago)
- Branches:
- (u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
- Children:
- 057fd3b14dfe97c1070a5e6e9ea465fb317ae57f
- Parents:
- e0bc8f01c31b06f5bd5223a76007232d262923ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/examples/application.cc
re0bc8f0 rc6e112 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: application.cc,v 1. 3 1997-10-28 13:46:41schmidt Exp $ */2 /* $Id: application.cc,v 1.4 1998-03-13 17:03:49 schmidt Exp $ */ 3 3 4 4 //{{{ docu … … 13 13 main() 14 14 { 15 // set our ring16 setCharacteristic( 0 );17 On( SW_RATIONAL );18 19 15 Variable x( 'x' ); 20 16 Variable y( 'y' ); … … 23 19 CanonicalForm g; 24 20 25 // call some of Factory's functions and methods and print26 // their results27 21 cout << "Do not forget to terminate canonical forms with `;' in input!" << endl; 22 23 // set our ring 24 setCharacteristic( 0 ); 25 On( SW_RATIONAL ); 26 28 27 cout << "Simple polynomial operations in characteristic 0." << endl; 29 28 cout << "Please enter two multivariate polynomials over Q." << endl; 30 31 29 cout << "f(x, y, z) = "; 32 30 cin >> f; … … 36 34 cout << "g = " << g << endl; 37 35 36 // call some of Factory's functions and methods and print 37 // their results 38 38 cout << "Polynomial information on f:" << endl; 39 39 cout << "mvar(f) = " << mvar( f ) << endl;
Note: See TracChangeset
for help on using the changeset viewer.