[GiNaC-list] archive/unarchive on functions with a variable number of arguments
Feng Feng
f.feng at outlook.com
Tue Mar 31 06:42:05 CEST 2020
Hi all,
I came across a problem about the archive and unarchive on functions with a variable number of arguments.
for example, the following c++ code produces the output: zeta(10,x) :> 1/93555*Pi^10.
it seems that the unarchive just return zeta(10).
Best regards!
Feng
//---
symbol x("x");
ex zx = zeta(10,x);
archive ar_out;
ar_out.archive_ex(zx, "zx");
ofstream out("tmp.gar");
out << ar_out;
out.close();
lst syms = {x};
archive ar_in;
ifstream in("tmp.gar");
in >> ar_in;
in.close();
cout << zx << " :> " << ar_in.unarchive_ex(syms,"zx") << endl;
//---
More information about the GiNaC-list
mailing list