Blame view

Giac_maj/giac-1.4.9/examples/demo/pgcd.cc 291 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  // -*- compile-command: "g++ -g pgcd.cc -lgiac -lgmp" -*-
  #include <giac/giac.h>
  
  using namespace std;
  using namespace giac;
  
  int main(){
    context ct;
    cout << "Enter two polynomials ";
    gen a,b;
    cin >> a >> b;
    cout << "PGCD is " << _gcd(makesequence(a,b),&ct) << endl;
    return 0;
  }