Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10064 > unrolled thread
| Started by | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| First post | 2012-05-13 07:04 +0000 |
| Last post | 2012-05-14 05:36 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: speeding up intergration of sum Bill Rowe <readnews@sbcglobal.net> - 2012-05-13 07:04 +0000
Re: speeding up intergration of sum A Retey <awnl@gmx-topmail.de> - 2012-05-14 05:36 +0000
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Date | 2012-05-13 07:04 +0000 |
| Subject | Re: speeding up intergration of sum |
| Message-ID | <jonme3$gfe$1@smc.vnet.net> |
On 5/12/12 at 4:51 AM, bar@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.
[toc] | [next] | [standalone]
| From | A Retey <awnl@gmx-topmail.de> |
|---|---|
| Date | 2012-05-14 05:36 +0000 |
| Message-ID | <joq5l2$r3m$1@smc.vnet.net> |
| In reply to | #10064 |
Am 13.05.2012 09:04, schrieb Bill Rowe: > On 5/12/12 at 4:51 AM, bar@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. 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web