Ask Your Question
0

Integration in Sage

asked 2013-04-29 13:34:28 -0500

assadabbasi gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-04-29 14:29:50 -0500

calc314 gravatar image

updated 2013-04-29 14:34:55 -0500

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=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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-04-29 13:34:28 -0500

Seen: 77 times

Last updated: Apr 29 '13