1 | initial version |
I don't know all the details of what you are doing. However, since you are working with polynomials, you might be able to define a map that gives you the integral directly without calling Sage's integration. For $p(x) = \sum_{n=0}^\infty a_n x^n$, an antiderivative is $P(x) = P_0+\sum_{n=}^\infty a_n \frac{x^{n+1}}{n+1}$. So, you can define a Sage function that extracts the coefficients and then produces the antiderivative.
2 | No.2 Revision |
I don't know all the details of what you are doing. However, since you are working with polynomials, you might be able to define a map that gives you the integral directly without calling Sage's integration. For $p(x) = \sum_{n=0}^\infty \sum_{n=0}^N a_n x^n$, an antiderivative is $P(x) = P_0+\sum_{n=}^\infty P_0+\sum_{n=}^N a_n \frac{x^{n+1}}{n+1}$. So, you can define a Sage function that extracts the coefficients and then produces the antiderivative.
3 | fix indices |
I don't know all the details of what you are doing. However, since you are working with polynomials, you might be able to define a map that gives you the integral directly without calling Sage's integration. For $p(x) = \sum_{n=0}^N a_n x^n$, an antiderivative is $P(x) = P_0+\sum_{n=}^N P_0+\sum_{n=0}^N a_n \frac{x^{n+1}}{n+1}$. So, you can define a Sage function that extracts the coefficients and then produces the antiderivative.