Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: multipleListPlot does not seem to accept Multiple Hue commands
  • Next by Date: Re: Decompose string into list
  • Previous by thread: Re: multipleListPlot does not seem to accept Multiple Hue commands
  • Next by thread: Re: Utilizing the Result From Solve[]