COLLECT and application of various commands to each coefficient
- To: mathgroup at smc.vnet.net
- Subject: [mg21135] COLLECT and application of various commands to each coefficient
- From: Blimbaum Jerry DLPC <BlimbaumJE at ncsc.navy.mil>
- Date: Fri, 17 Dec 1999 01:21:35 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I want to simplify a long expression using the Collect command. I notice that it allows you to apply a command to each of the coefficients, e.g. Collect[expr,{Cos[x],Sin[x]},Simplify] But Simplify here applies to both coefficients. What if I want to do different things with each coefficient, e.g. Collect[expr,{Cos[x],Sin[x]},{Collect coefficient of Cos[x] in terms of x^2,Simplify Coefficients of Sin[x]]}] Can this be done within the Collect command? I tried it literally as I wrote above but that didnt work. Thanks. jerry blimbaum NSWC Panama City, Fl