MathGroup Archive 1996

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

Search the Archive

Re: ???? How to assign result from Solve to variable ????

On Sat, 27 Apr 1996, Ram Piyaket wrote:

> Hi,
> I was wondering if anyone could tell me how to deal with this problem.
> I want to assign the numerical result that I obtain from the Solve or etc. 
> command, which typically enclosed in the braces ({...}) to a variable
> so that I can reuse it. I just want the numerical number, not the braces.
> Can you tell me how? I appreciate all the help from you. Thank you very much.
> Ram

Try something like 

{x1,x2} = x /. Solve[x^2 + 4 x + 2 == 0]

Dennis M. Schneider
Department of Mathematics
Knox College
Galesburg, IL  61401
(309) 341 7420


  • Prev by Date: Re: Re: supplying an arbitrary number of lists to functions
  • Next by Date: The Mathematica Journal-Supplements
  • Previous by thread: Re: ???? How to assign result from Solve to variable ????
  • Next by thread: Mathematica 2.2.2 for power macintosh - $550 plus shipping