Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

rules->function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7338] rules->function
  • From: Lord of Darkness <j.biddiscombe at rl.ac.uk>
  • Date: Tue, 27 May 1997 22:27:18 -0400 (EDT)
  • Organization: Rutherford Appleton Laboratory
  • Sender: owner-wri-mathgroup at wolfram.com

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.....

I tried saying

fn[x_,y_] := Replace[z,zrule] + ....

but it doesn't seem to handle it the way I wanted...

Is there a correct way of doing this ?

thanks

John B


  • Prev by Date: Mathematica on IRC
  • Next by Date: Re: Export Numbers
  • Previous by thread: Mathematica on IRC
  • Next by thread: Re: rules->function