Utilizing the Result From Solve[]
- To: mathgroup at smc.vnet.net
- Subject: [mg64099] Utilizing the Result From Solve[]
- From: Shyam Guthikonda <shyamguth at gmail.com>
- Date: Wed, 1 Feb 2006 04:34:37 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
If I am solving a simple equation, such as: Solve[z+2 = = 3,z], this returns {{z->1}}. How can I easily get the result, 1? Solve[] returns the solution in rule form. The current method I use to just get the result looks very ugly. Is there an easier way to do this? Here is my current method: ReplaceAll[z, First[ First[ Solve[ z + 2 = = 3, z ]]]]; z = %; Now I can use z as a normal variable. Thanks! _Shyam