MathGroup Archive 2003

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

Search the Archive

Re: How to get Mathematica to solve for "nonbasic variables"?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42376] Re: [mg42359] How to get Mathematica to solve for "nonbasic variables"?
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Thu, 3 Jul 2003 06:10:32 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On Wednesday, July 2, 2003, at 06:36 AM, cdj wrote:

> Hi all,
>
> Intuitively, I'd like to get Mathematica to compute things of the 
> following
> sort:
>
> In: Solve[5x==6y,x/y]
>
> Out: {x/y -> 5/6}
>
> Of course Mathematica won't do this - and several obvious variations 
> on this
> theme don't seem to work either (e.g., introducing a new variable z =
> x/y, and attempting to solve the system for z).
>
> So what's the easiest way to solve (systems of) equations for
> nonatomic variables of this sort?
>
> Thanks for any suggestions,

Here's a general strategy:

In[126]:=
Eliminate[{5 x\[Equal]6 y,z\[Equal]x/y},{x,y}]
Out[126]=
5 z==6
In[127]:=
InputForm[Solve[%,z]]
Out[127]//InputForm=
{{z -> 6/5}}

Regards,

Ssezi


  • Prev by Date: Re: How to get Mathematica to solve for "nonbasic variables"?
  • Next by Date: RE: How to get Mathematica to solve for "nonbasic variables"?
  • Previous by thread: Re: How to get Mathematica to solve for "nonbasic variables"?
  • Next by thread: RE: How to get Mathematica to solve for "nonbasic variables"?