MathGroup Archive 2002

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

Search the Archive

Re: cannot solve *trivial* equation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34393] Re: cannot solve *trivial* equation
  • From: Erk Jensen <Erk.Jensen at cern.ch>
  • Date: Sat, 18 May 2002 03:50:53 -0400 (EDT)
  • Organization: CERN http://www.cern.ch
  • References: <ac2n7c$3qr$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Marco Manfredini wrote:
> Hi,
> 
> I just tried a friend's Mathematica 4.0.0.0: 
> 
> Solve[{A == S + Q, Q == 2*S}, A]
> 
> => {A->3*S}
> 
> Solve[{A == S + Q, Q == 2*S}, S]
> 
> => {}
>  
> Can somebody explain this to me? (ie. "bug","you stupid") 
> 
> Marco

I'm not sure, but I'd say it's of the "you stupid" type ;)

two equations, two solutions!
Try the following and you'll see clearer:
Solve[{a == s + q, q == 2 s}, {q, s}]
Solve[a == s + q, s]
Solve[q == 2 s, s]

(BTW: it's good practice to use capitals for variables)

Your first (solving for A) worked since the second eq. doesn't contain A.

Ciao
    -erk-
-- 
  Dr.-Ing. Erk JENSEN                    mailto:Erk.Jensen at cern.ch
  CERN  PS/RF  L19510                    http://cern.ch/Erk.Jensen
  CH-1211 Geneva 23                      Tel.:     +41 22 76 74298
  Switzerland                            Fax.:     +41 22 76 78510



  • Prev by Date: Re: cannot solve *trivial* equation
  • Next by Date: RE: cannot solve *trivial* equation
  • Previous by thread: Re: cannot solve *trivial* equation
  • Next by thread: RE: cannot solve *trivial* equation