Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12276
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Help with map /@ |
| Date | 2012-11-08 07:10 +0000 |
| Message-ID | <k7flt7$jjf$1@smc.vnet.net> (permalink) |
| References | <20121107055615.6E1DC684C@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Ex = T1[x, y, z] + T2[x, y, z] + T3[x, y, z]; n = 1; Integrate[#, #[[n++]]] & /@ Ex Integrate[T1[x, y, z], x] + Integrate[T2[x, y, z], y] + Integrate[T3[x, y, z], z] Bob Hanlon On Wed, Nov 7, 2012 at 10:19 AM, Hussain AlQahtani <hussain.alqahtani@gmail.com> wrote: > Dear Bob > Thanks for the great reply. But what if Ex = T1[x,y,z]+T2[x,y,z]+T3[x,y,z]; > > regards, > > HMQ > > > On Wed, Nov 7, 2012 at 9:29 AM, Bob Hanlon <hanlonr357@gmail.com> wrote: >> >> Ex = T1[x] + T2[y] + T3[z]; >> >> Integrate[#, #[[-1]]] & /@ Ex >> >> Integrate[T1[x], x] + >> Integrate[T2[y], y] + >> Integrate[T3[z], z] >> >> Integrate[#, Cases[#, _Symbol, 1][[1]]] & /@ Ex >> >> Integrate[T1[x], x] + >> Integrate[T2[y], y] + >> Integrate[T3[z], z] >> >> >> Bob Hanlon >> >> >> On Wed, Nov 7, 2012 at 12:56 AM, KFUPM <hussain.alqahtani@gmail.com> >> wrote: >> > Dear All >> > >> > I have a this expression: >> > >> > Ex= T1[x]+T2[y]+T3[z]; >> > >> > I want to integrate the first term with respect to x, the second w.r.t y >> > and the third with respect to z and then sum them all. I want to use the map >> > function (/@) or similar to do that for me automatically. Your help is >> > really appreciated. >> > >> > HMQ >> > > > > > > -- > Hussain Al-Qahtani, Ph.D. > Assistant Professor > > Department of Mechanical Engineering > King Fahd University of Petroleum and Minerals > P.O. Box 414 Dhahran, 31261 > Saudi Arabia > > 966-3-860-2846 (Office) > 966-3-860-2949 (Fax) > >
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Help with map /@ Bob Hanlon <hanlonr357@gmail.com> - 2012-11-08 07:10 +0000
csiph-web