31 Mar
2020
31 Mar
'20
6:42 a.m.
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; //---