Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: Help with map /@
Posted:
Nov 8, 2012 7:01 PM


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, L5326 Contern, LUXEMBOURG
Office phone : +35224542566 Office fax: +35224543566 mobile phone: +49 151 52 40 66 44
email: alexei.boulbitch@iee.lu



