MathGroup Archive 1998

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

Search the Archive

Re: Question about equations solutions?


Use this form:

a = y /. Solve[y^2+5*y*x+6*x^2==0,y]

{-3 x,-2 x}

Bob Hanlon

In a message dated 7/4/98 8:37:40 PM, ieblanc at ibm.net wrote:

>This is probably a dumb question but can anyone help.
>
>a = Solve[y^2+5*y*x+6*x^2==0,y]  gives an answer of  {{y->-3 x},{y->-2
>x}}
>
>and
>
>Print[a] then displays {{y->-3 x},{y->-2 x}}
>
>How do get Print or some later input to reference the actual solutions
>"2x" or "3x" instead of {{y->-3 x},{y->-2 x}}


  • Prev by Date: coordinate transformation
  • Next by Date: Re: Random[Real]: How good is it? Is it better/worse than Park-Miller, etc?
  • Previous by thread: Re: Question about equations solutions?
  • Next by thread: Mathematica Printing in Windows 98?