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

Re: Utilizing the Result From Solve[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64118] Re: Utilizing the Result From Solve[]
  • From: rudy <rud-x at caramail.com>
  • Date: Thu, 2 Feb 2006 00:05:06 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

hello shyam,

a very much easier way is to use replacing rules because the result of an instruction like Solve is in the form of a rule  (ie: {var -> res} ) 

So:

In >  res = Solve[z+2==3,z]//Flatten
Out > {z->1}

now, to use the result:

In > exampleFunc[x_]:=Log[x]

In > exampleFunc[z]/.res
Out > 0


Replacement rules is one of the much important concept in Mathematica. 
Regards
Rudy


  • Prev by Date: Re: Contour Plot from a non matrix data
  • Next by Date: Re: Contour Plot from a non matrix data
  • Previous by thread: Utilizing the Result From Solve[]
  • Next by thread: Re: Utilizing the Result From Solve[]