Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg3889] Re: [mg3814] ???? How to assign result from Solve to variable ????
  • From: Dennis M Schneider <dschneid at knox.edu>
  • Date: Sat, 4 May 1996 23:22:27 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

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


==== [MESSAGE SEPARATOR] ====


  • 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