MathGroup Archive 2006

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

Search the Archive

Re: Utilizing the Result From Solve[]


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[]