Gröbner basis project
Codebase for research into Gröbner basis computation
test_gmp.cxx
1 #include <iostream>
2 #include "gmpxx.h"
3 
4 using std::cout;
5 
6 int main (void)
7 {
8  mpz_class a, b, c;
9 
10  a = 1234;
11  b = "-5678";
12  c = a+b;
13  cout << "sum is " << c << "\n";
14  cout << "absolute value is " << abs(c) << "\n";
15 
16  return 0;
17 }
18