source: git/factory/ftest/resultant.m4 @ a40e7b

spielwiese
Last change on this file since a40e7b was cf0a71, checked in by Jens Schmidt <schmidt@…>, 26 years ago
* size.m4, degree.m4, deriv.m4, totaldegree, resultant: doc fix git-svn-id: file:///usr/local/Singular/svn/trunk@880 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2/* $Id: resultant.m4,v 1.5 1997-11-05 16:12:16 schmidt Exp $ */
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.