MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: re-grouping expressions in mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102992] Re: re-grouping expressions in mathematica
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Thu, 3 Sep 2009 07:11:34 -0400 (EDT)
  • References: <h7o2hm$k22$1@smc.vnet.net>

On 2009.09.03. 11:33, Peter Schreiber 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
>

Use Collect:

Collect[3 (2 + 4 a + 5 b) + 5 (a - 0.4 b), {a, b}]


  • Prev by Date: Re: Viewing .mx files (Question)
  • Next by Date: Re: problem with integrating an interpolated list
  • Previous by thread: Re: re-grouping expressions in mathematica
  • Next by thread: Re: re-grouping expressions in mathematica