Re: ???? How to assign result from Solve to variable ????
- To: mathgroup at smc.vnet.net
- Subject: [mg3855] Re: ???? How to assign result from Solve to variable ????
- From: Harald Berndt <haraldb at nature.berkeley.edu>
- Date: Sat, 4 May 1996 02:12:21 -0400
- Organization: University of California Forest Prodcts Lab
- Sender: owner-wri-mathgroup at wolfram.com
Ram Piyaket wrote: > 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. If you execute Solve[..., x], say, then either x/.First[%] or %[[1, 1, 2]] will get you the result you want. -- ______________________________________________________________________ Harald Berndt, University of California Research Specialist Forest Products Laboratory Phone: 510-215-4224 FAX: 510-215-4299 ______________________________________________________________________ ==== [MESSAGE SEPARATOR] ====