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] ====