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

*To*: mathgroup at smc.vnet.net*Subject*: [mg3842] Re: ???? How to assign result from Solve to variable ????*From*: rhall2 at umbc.edu (hall robert)*Date*: Mon, 29 Apr 1996 00:32:19 -0400*Organization*: University of Maryland, Baltimore County*Sender*: owner-wri-mathgroup at wolfram.com

In article <4let71$e4m at dragonfly.wolfram.com>, Ram Piyaket <rpiyaket at ucsd.edu> 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. In[36]:= a = Solve[3 x - 4 == 0, x] // Flatten Out[36]= 4 {x -> -} 3 In[47]:= x /. a Out[47]= 4 - 3 or In[50]:= a[[1, 2]] Out[50]= 4 - 3 -- Bob Hall | "Know thyself? Absurd direction! rhall2 at gl.umbc.edu | Bubbles bear no introspection." -Khushhal Khan Khatak ==== [MESSAGE SEPARATOR] ====