~ubuntu-branches/ubuntu/saucy/gfan/saucy-proposed

« back to all changes in this revision

Viewing changes to app_mixedvolume.cpp

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier
  • Date: 2013-07-09 10:44:01 UTC
  • mfrom: (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130709104401-5q66ozz5j5af0dak
Tags: 0.5+dfsg-3
* Upload to unstable.
* modify remove_failing_tests_on_32bits.patch to replace command of
  0009RenderStairCase test with an empty one instead of deleting it.
* remove lintian override about spelling error

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <iostream>
 
2
#include "parser.h"
 
3
#include "printer.h"
 
4
#include "polynomial.h"
 
5
#include "mixedvolume.h"
 
6
#include "gfanapplication.h"
 
7
 
 
8
class MixedVolumeApplication : public GFanApplication
 
9
{
 
10
public:
 
11
  const char *helpText()
 
12
  {
 
13
    return "This program computes the mixed volume of the Newton polytopes of a list of polynomials. The ring is specified on the input. After this follows the list of polynomials.\n";
 
14
  }
 
15
  MixedVolumeApplication()
 
16
  {
 
17
    registerOptions();
 
18
  }
 
19
  const char *name()
 
20
  {
 
21
    return "_mixedvolume";
 
22
  }
 
23
  int main()
 
24
  {
 
25
    FileParser P(Stdin);
 
26
    PolynomialSet s=P.parsePolynomialSetWithRing();
 
27
    cout << mixedVolume(s) << endl;
 
28
    return 0;
 
29
  }
 
30
};
 
31
 
 
32
static MixedVolumeApplication theApplication;