[GiNaC-list] Compilation

Pedro Sosa psosmol at yahoo.com
Wed Mar 13 16:30:56 CET 2019


Hello, I install in my Ubuntu Ginac but I don't know how to compile a basic example
#include <iostream>
#include <ginac/ginac.h>
using namespace std;
using namespace GiNaC;

int main()
{
    symbol x("x"), y("y");

    for (int i=0; i<3; ++i)
        poly += factorial(i+16)*pow(x,i)*pow(y,2-i);

    cout << poly << endl;
    return 0;
}
where I must put this file for ginac.h can be visiblethanks
PS: /usr/include/ginac/ginac.h

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20190313/39e3f52a/attachment.html>


More information about the GiNaC-list mailing list