我正在尝试在Ubuntu 16.04上安装ginac,我已经从源代码安装了ginac-tools。但是,当我将网站上给出的示例复制到我的代码中时,它说:找不到这样的文件或目录(在#include ginac行中)。
#include <iostream>
#include <ginac/ginac.h>
using namespace std;
using namespace GiNaC;
int main()
{
symbol x("x"), y("y");
ex poly;
for (int i=0; i<3; ++i)
poly += factorial(i+16)*pow(x,i)*pow(y,2-i);
cout << poly << endl;
return 0;
}
我也尝试搜索ginac.h,但在我的系统上找不到它。我怎样才能解决这个问题?
编辑:我也必须安装libginac-dev。
我也必须安装libginac-dev。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句