The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: [mg7338] rules->function
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Andrei Constantinescu

Posts: 32
Registered: 12/7/04
Re: [mg7338] rules->function
Posted: May 30, 1997 1:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Tue, 27 May 1997, Lord of Darkness wrote:

> Hello All,
> 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.....

you should try

fn[x_,y_] := z + some more stuff..... /. zrule

which means that the replacement will be made at evaluation

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.