Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

speeding up intergration of sum

34 views
Skip to first unread message

b...@antyspam.ap.krakow.pl

unread,
May 12, 2012, 4:52:49 AM5/12/12
to
Hello,
I have a problem with Integrate[f[z]] where
f[z] is a sum of many parts,

All those parts are very simple ( like a/(b+z) )

Sometimes Integrate[f[z],z] doesn't reach convergence

althouhg Integrate of the all of parts exists,

The question is :
Is it possible to force the Mathematica to calculate this sum

step by step (part by part) ??

The resylt should be a sum of the a*Log[b+x]

greetings , Olaf




Bill Rowe

unread,
May 13, 2012, 3:04:35 AM5/13/12
to
On 5/12/12 at 4:51 AM, b...@ANTYSPAM.ap.krakow.pl wrote:

>Hello, I have a problem with Integrate[f[z]] where f[z] is a sum of
>many parts,

>All those parts are very simple ( like a/(b+z) )

>Sometimes Integrate[f[z],z] doesn't reach convergence

>althouhg Integrate of the all of parts exists,

>The question is : Is it possible to force the Mathematica to
>calculate this sum

>step by step (part by part) ??

Yes, if f[z] is just a sum of terms then you could do either

Total@Integrate[List@@f[z],z]

or

Total[Integrate[#,z]&/@List@@f[z]]

Either will cause Mathematica to integrate each term
individually then sum the results of each integration. I don't
know whether this will be faster or not for your situation.



A Retey

unread,
May 14, 2012, 1:36:34 AM5/14/12
to
I think there is no need to turn the Plus to a List and back, Map will
work happily with the original head Plus:

Integrate[#, z] & /@ f[z]

hth,

albert

b...@antyspam.ap.krakow.pl

unread,
May 20, 2012, 2:36:27 AM5/20/12
to
Thank You very much!

Olaf

0 new messages