Changeset 8124c2 in git


Ignore:
Timestamp:
May 7, 1998, 5:25:19 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d3e360e83253aed6abe1b84a4aade310e0c2c926
Parents:
d48da699b92b698bc47c56fba783c9cf60ba8624
Message:
	* factorize.m4 (main): accepts optional variable now


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

Legend:

Unmodified
Added
Removed
  • factory/ftest/factorize.m4

    rd48da6 r8124c2  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: factorize.m4,v 1.1 1997-11-05 16:11:06 schmidt Exp $ */
     2/* $Id: factorize.m4,v 1.2 1998-05-07 15:25:19 schmidt Exp $ */
    33
    44ftestSetNameOfGame( factorize, `"
    5 Usage: factorize [<options>] [<envSpec>] <f>
    6   factorizes canonical form f.
     5Usage: factorize [<options>] [<envSpec>] <f> [<v>]
     6  factorizes canonical form <f>.
     7  If algebraic variable <v> is specified, factorizes in
     8  algebraic extension by <v>.
    79"'`' )
    810
     
    3436    ftestOutVar( CFFList, result );
    3537    ftestInVar( CanonicalForm, f );
     38    ftestInVar( Variable, v );
    3639
    3740    // process argument list and set environment
     
    3942    ftestGetEnv();
    4043    ftestGetInVar( f );
     44    ftestGetInVar( v, Variable() );
    4145
    4246    // do the test!
    43     ftestRun(
    44         result = factorize( f ); );
     47    if ( ftestArgGiven( v ) ) {
     48        ftestRun( result = factorize( f, v ); );
     49    } else {
     50        ftestRun( result = factorize( f ); );
     51    }
    4552
    4653    // print results
    47     ftestOutput( "factorize(f)", result );
     54    if ( ftestArgGiven( v ) ) {
     55        ftestOutput( "factorize(f, v)", result );
     56    } else {
     57        ftestOutput( "factorize(f)", result );
     58    }
    4859
    4960    // clean up
Note: See TracChangeset for help on using the changeset viewer.