MathGroup Archive 1997

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

Search the Archive

Re: rules->function

  • To: mathgroup at
  • Subject: [mg7383] Re: rules->function
  • From: pecora at (Louis M. Pecora)
  • Date: Fri, 30 May 1997 01:19:27 -0400 (EDT)
  • Organization: Naval Research Laboratory
  • Sender: owner-wri-mathgroup at

In article <5mepea$aom at>, Lord of Darkness
<j.biddiscombe at> 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
 == 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:
"God does not play dice with the universe, but he occasionally racks up the planets for a game of billiards."

  • Prev by Date: Re: rules->function:THANKS+new plotting question
  • Next by Date: Dashed GridLines appear impossible
  • Previous by thread: Re: rules->function
  • Next by thread: All involutions of a permutation