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