void TraceMod(zz_p& x, const zz_pX& a, const zz_pX& f)
{
   if (deg(a) >= deg(f) || deg(f) <= 0)
      Error("trace: bad args");

   project(x, TraceVec(f), a);
}
Esempio n. 2
0
static char* ZZ_pX_trace_list(struct ZZ_pX* x)
{
    vec_ZZ_p v;
    TraceVec(v, *x);
    std::ostringstream instore;
    instore << v;
    int n = strlen(instore.str().data());
    char* buf = new char[n+1];
    strcpy(buf, instore.str().data());
    return buf;
}