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


  • Prev by Date: Q: OPtimal swap file settings with win3.11
  • Next by Date: Mathematica 2.2.2 for power macintosh - $550 plus shipping
  • Previous by thread: Re: Q: OPtimal swap file settings with win3.11
  • Next by thread: Re: ???? How to assign result from Solve to variable ????