Re: Conversion Function -> List
- To: mathgroup at smc.vnet.net
- Subject: [mg44739] Re: Conversion Function -> List
- From: "William" <william.bbs at bbs.ep.nctu.edu.tw>
- Date: Mon, 24 Nov 2003 00:05:25 -0500 (EST)
- Organization: Computer Science & Information Engineering NCTU
- References: <bpn3e7$ljo$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
You can try this x y + Sin[x] Cos[y] and Sum[p[i,x] q[i,y], {i,1,n}]/.{Times->List,Plus->List} I hope this can help you. W.Lin "Vadim Zelenkov" <zelenkov at mail333.com> ¦b¶l¥ó news:bpn3e7$ljo$1 at smc.vnet.net ¤¤¼¶¼g... > Hello! > > Given a function > x y + Sin[x] Cos[y] > > I need to convert it into the list > {{x,y},{Sin[x],Cos[x]}} > > Generally, the purpose to convert a function > Sum[p[i,x] q[i[y], {i,1,n}] > > into the list > {{p[1,x],q[1,y]},...,{p[n,x],q[n,y]} > > How to do it using Mathematica? > > Thanks in advance! > > V.Z. > > P.S, If possible please duplicate your answers to zelenkov[at]mail333.com >