In article <5mepea$aom at smc.vnet.net>, Lord of Darkness
<j.biddiscombe at rl.ac.uk> wrote:
> If I solve a set of simultaneous equations and get a simple answer like
> zrule = z-> x^2 + y^2
>
> but I then want to evaluate
> fn[x_,y_] := z + some more stuff.....
Try fn[x_,y_] := z + some more stuff..... /.zrule
There may be a more efficient way of doing this.
> I tried saying
>
> fn[x_,y_] := Replace[z,zrule] + ....
Just a guess, but I bet Replace means "->", so zrule in the Replace[]
should just be x^2 + y^2.
--
Louis M. Pecora
pecora at zoltar.nrl.navy.mil
== My views and opinions are not those of the U.S. Navy. ==
== No Spamming or Soliciting -- both are illegal at this site ==
--------------------------------------------------------------------
* The home page for the 4th Experimental Chaos Conference! *
*** List of -- Invited Speakers and Sessions -- ***
+ Other links:
http://natasha.umsl.edu/Exp_Chaos4
---------------------------------------------------------------------
"God does not play dice with the universe, but he occasionally racks up the planets for a game of billiards."