MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Splitting integrals

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg1835] Re: Splitting integrals
  • From: wagner at bullwinkle.cs.Colorado.EDU (Dave Wagner)
  • Date: Thu, 3 Aug 1995 23:54:15 -0400
  • Organization: University of Colorado, Boulder

In article <DCLuKo.3JM at wri.com>,
Benno v.d. Brink <brinkb at prl.philips.nl> wrote:
>
>I have a large integral that I want to split into several parts, like:
> 
>Integrate[f[u] + g[u] + h[u], {u, z0, z}]
> 
>into:
>   
>Integrate[f[u], {u, z0, z}] + Integrate[g[u], {u, z0, z}] +
>         Integrate[h[u], {u, z0, z}]

All you need to do is add the following rule:

In[1]:=
    Unprotect[Integrate];
In[2]:=
    Integrate[sum_Plus, range_List] := Integrate[#, range]& /@ sum
In[3]:=
    Protect[Integrate]
In[4]:=
    Integrate[f[u] + g[u] + h[u], {u, z0, z}]
Out[4]=
    Integrate[f[u], {u, z0, z}] + 
      Integrate[g[u], {u, z0, z}] + 
      Integrate[h[u], {u, z0, z}]

		Dave Wagner
		Principia Consulting
		(303) 786-8371
		dbwagner at princon.com
		http://www.princon.com/princon


  • Prev by Date: Splitting integrals
  • Next by Date: Q: Translator Mathematica -> C,C++
  • Previous by thread: Splitting integrals
  • Next by thread: Re: Splitting integrals