ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 29 Apr 2013 21:29:50 +0200Integration in Sagehttps://ask.sagemath.org/question/9891/integration-in-sage/Hi,
I am working on a problem in Lattice theory where I have to integrate polynomials with thousands of terms. And the integration is in 8 dimensions (means its not a single integral but 8 integrals). I am using integral() in sage to integrate the polynomials. It takes too much time to integrate the polynomials. Is there any way to speed up this integration in sage?Mon, 29 Apr 2013 20:34:28 +0200https://ask.sagemath.org/question/9891/integration-in-sage/Answer by calc314 for <p>Hi,</p>
<p>I am working on a problem in Lattice theory where I have to integrate polynomials with thousands of terms. And the integration is in 8 dimensions (means its not a single integral but 8 integrals). I am using integral() in sage to integrate the polynomials. It takes too much time to integrate the polynomials. Is there any way to speed up this integration in sage?</p>
https://ask.sagemath.org/question/9891/integration-in-sage/?answer=14867#post-id-14867I 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=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.Mon, 29 Apr 2013 21:29:50 +0200https://ask.sagemath.org/question/9891/integration-in-sage/?answer=14867#post-id-14867