Changeset c6e112 in git for factory


Ignore:
Timestamp:
Mar 13, 1998, 6:03:49 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
057fd3b14dfe97c1070a5e6e9ea465fb317ae57f
Parents:
e0bc8f01c31b06f5bd5223a76007232d262923ac
Message:
**** merge from branch `factory-gcd' to main trunk


git-svn-id: file:///usr/local/Singular/svn/trunk@1234 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/examples/application.cc

    re0bc8f0 rc6e112  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: application.cc,v 1.3 1997-10-28 13:46:41 schmidt Exp $ */
     2/* $Id: application.cc,v 1.4 1998-03-13 17:03:49 schmidt Exp $ */
    33
    44//{{{ docu
     
    1313main()
    1414{
    15     // set our ring
    16     setCharacteristic( 0 );
    17     On( SW_RATIONAL );
    18 
    1915    Variable x( 'x' );
    2016    Variable y( 'y' );
     
    2319    CanonicalForm g;
    2420
    25     // call some of Factory's functions and methods and print
    26     // their results
    2721    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
    2827    cout << "Simple polynomial operations in characteristic 0." << endl;
    2928    cout << "Please enter two multivariate polynomials over Q." << endl;
    30 
    3129    cout << "f(x, y, z) = ";
    3230    cin >> f;
     
    3634    cout << "g                = " << g << endl;
    3735
     36    // call some of Factory's functions and methods and print
     37    // their results
    3838    cout << "Polynomial information on f:" << endl;
    3939    cout << "mvar(f)          = " << mvar( f ) << endl;
Note: See TracChangeset for help on using the changeset viewer.