source: git/factory/ftest/resultant.m4 @ 615ca8

fieker-DuValspielwiese
Last change on this file since 615ca8 was 341696, checked in by Hans Schönemann <hannes@…>, 15 years ago
Adding Id property to all files git-svn-id: file:///usr/local/Singular/svn/trunk@12231 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2/* $Id$ */
3
4ftestSetNameOfGame( resultant, `"
5Usage: resultant [<options>] [<envSpec>] <f> <g> <x>
6  calculates resultant of canonical forms f and g with respect to
7  variable x.
8"'`' )
9
10//{{{ docu
11//
12// ftestAlgorithm.m4 - ftestAlgorithm test program.
13//
14// To create ftestAlgorithm.cc, run m4 using the ftest_util.m4 library in
15// the following way:
16//
17// m4 ftest_util.m4 ftestAlgorithm.m4 > ftestAlgorithm.cc
18//
19//}}}
20
21ftestPreprocInit();
22
23ftestGlobalInit();
24
25//
26// - main program.
27//
28int
29main ( int argc, char ** argv )
30{
31    // initialization
32    ftestMainInit();
33
34    // declare input and output variables
35    ftestOutVar( CanonicalForm, result );
36    ftestInVar( CanonicalForm, f );
37    ftestInVar( CanonicalForm, g );
38    ftestInVar( Variable, x );
39
40    // process argument list and set environment
41    ftestGetOpts();
42    ftestGetEnv();
43    ftestGetInVar( f );
44    ftestGetInVar( g );
45    ftestGetInVar( x );
46
47    // do the test!
48    ftestRun(
49        result = resultant( f, g, x ); );
50
51    // print results
52    ftestOutput( "resultant(f, g, x)", result );
53
54    // clean up
55    ftestMainExit();
56}
Note: See TracBrowser for help on using the repository browser.