source: git/factory/ftest/resultant.m4 @ 2a99ba

spielwiese
Last change on this file since 2a99ba was 2a99ba, checked in by Jens Schmidt <schmidt@…>, 27 years ago
Initial revision git-svn-id: file:///usr/local/Singular/svn/trunk@722 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 999 bytes
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2/* $Id: resultant.m4,v 1.1 1997-09-12 12:26:17 schmidt Exp $ */
3
4//{{{ docu
5//
6// resultant.m4 - resultant test program.
7//
8// Syntax: type `resultant -?' for more information
9//
10//}}}
11
12ftestPreprocInit();
13
14#include <factory.h>
15
16#include "ftest_util.h"
17
18ftestGlobalInit();
19
20//
21// - functions.
22//
23
24//
25// - main program.
26//
27int
28main ( int argc, char ** argv )
29{
30    ftestMainInit();
31
32    // declare input and output variables
33    ftestOutVar( CanonicalForm, result );
34    ftestInVar( CanonicalForm, f );
35    ftestInVar( CanonicalForm, g );
36    ftestInVar( Variable, x );
37
38    // process argument list and set environment
39    ftestGetOpts();
40    ftestGetEnv();
41    ftestGetInVar( f );
42    ftestGetInVar( g );
43    ftestGetInVar( x );
44
45    ftestSetEnv();
46
47    // do the test!
48    ftestRun(
49        result = resultant( f, g, x ); );
50
51    // print results
52    ftestOutput( "resultant", "resultant( f, g, x ) =", result );
53
54    // clean up
55    ftestMainExit();
56}
Note: See TracBrowser for help on using the repository browser.