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: [mg42385] Re: How to get Mathematica to solve for "nonbasic variables"?
  • From: Bill Rowe <listuser at earthlink.net>
  • Date: Thu, 3 Jul 2003 06:10:38 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 7/2/03 at 6:36 AM, a_cjones at hotmail.com (cdj) wrote:

> 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}

Does

In[1]:=
sol = Solve[5*x == 6*y, x]
r = {x/y -> (x/y /. sol[[1]])}

Out[1]=
{{x -> (6*y)/5}}

Out[2]=
{x/y -> 6/5}

do what you want?


  • Prev by Date: variable definition help
  • Next by Date: upper and lower bound for the unknowns
  • 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"?