Skip to content

多项式求积分 ​

cpp
poly inte(poly &f){
    int n=f.size();
    poly g(n+1);
    g[0]=0;
    for(int i=1;i<=n;i++)g[i]=f[i-1]*qpow(i,P-2)%P;
    return g;
}