Re: Using % in ; separated commands
- To: mathgroup at smc.vnet.net
- Subject: [mg35908] Re: [mg35889] Using % in ; separated commands
- From: BobHanlon at aol.com
- Date: Wed, 7 Aug 2002 05:59:26 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 8/5/02 7:10:51 AM, kausmic at yahoo.com writes: >I have been using Mathematica for basic stuff so far >and find myself lost on how to acheive the following: > >I need to extract the last numerical value of 'a' in >Solve ( without the 'a ->'), so I can use it >elsewhere, without having to type it in. Here is what >I wrote > >Solve[Sin[a]==0.4717 * Sin[(Pi/3)-a],a]; Last[a /. %] > >The problem is that the value in '%' is not the output >of Solve, but the whatever operation came before that! >Any help on how to extract the last numerical from >solve will be greatly appreciated. Put in separate cells or restructure as Last[a /. Solve[Sin[a]==0.4717 * Sin[(Pi/3)-a],a]] Bob Hanlon Chantilly, VA USA