Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12288

Re: Help with map /@

From Alexei Boulbitch <Alexei.Boulbitch@iee.lu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Help with map /@
Date 2012-11-09 00:01 +0000
Message-ID <k7hh4s$nvk$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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

Hi, Hussain,
Try this:

expr = T1[x] + T2[y] + T3[z];
Map[Integrate[#, #[[1]]] &, expr]

\[Integral]T1[x] \[DifferentialD]x + \[Integral]T2[
    y] \[DifferentialD]y + \[Integral]T3[z] \[DifferentialD]z

Have fun, Alexei



Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch@iee.lu



Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Help with map /@ Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2012-11-09 00:01 +0000
  Re: Help with map /@ David Bailey <dave@removedbailey.co.uk> - 2012-11-14 06:35 +0000

csiph-web