MathGroup Archive 2010

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

Search the Archive

Re: Writing an equation in terms of r, a and b

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107877] Re: [mg107850] Writing an equation in terms of r, a and b
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 1 Mar 2010 08:05:16 -0500 (EST)
  • Reply-to: hanlonr at cox.net

eqn = r == a (-q2) + b q1 q2 + b;

Collect[eqn, {a, b}]

r == b*(q1*q2 + 1) - a*q2


Bob Hanlon

---- Rafael Cunha de Almeida <no-reply at example.com> wrote: 

=============
Hello, I want to transform an equation to fit the following pattern:

	r = ax + by

For instance, if I had

	 r = a(-q_2) + bq_1q_2 + b

I'd like make it into this:

	 r = a(-q_2) + b(1 + q_1q_2)

In this case x = -q_2 and y = 1 + q_1q_2. Is there a function for that? What's
it called?

[]'s
Rafael




  • Prev by Date: Re: auto-save in Mathematica
  • Next by Date: Re: Shading in polar plot
  • Previous by thread: Writing an equation in terms of r, a and b
  • Next by thread: Shading in polar plot