Re: re-grouping expressions in mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg103013] Re: [mg102978] re-grouping expressions in mathematica
- From: "Elton Kurt TeKolste" <tekolste at fastmail.us>
- Date: Thu, 3 Sep 2009 19:57:00 -0400 (EDT)
- References: <200909030942.FAA21049@smc.vnet.net>
Peter
In the example provided, there is not much to do:
In[49]:= Simplify[q1]
Out[49]= 6. + 17. a + 13. b
Except, of course, that there is no equivalent expression in the target
pattern that you have specified (the constant, 6, does not fit)l
Assuming that your real question is not so simple: if you want to
collect terms together in a more complex expression, try
In[48]:= Collect[q1, {a, b}]
Out[48]= 6 + 17 a + 13. b
ekt
On Thu, 03 Sep 2009 05:42 -0400, "Peter Schreiber"
<schreiber.peter15 at gmail.com> wrote:
> Hi guys,
> How can I tell mathematica to re-write following expression q1 in the
> form of q2?
>
> q1=3(2+4a+5b)+5(a-0.4b)
>
>
> q2=(...)a + (...)b
>
> Best Regards,
> Peter
>
Regards,
Kurt Tekolste
- References:
- re-grouping expressions in mathematica
- From: Peter Schreiber <schreiber.peter15@gmail.com>
- re-grouping expressions in mathematica