Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Function Evaluation' topicStudent Support Forum > General > "Function Evaluation"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
10/12/04 5:50pm


As I understand your needs, you need to choose the function name that you want to use. Usually you need to use rules to do that.
For example if I define two simple functions

f[x_] := Sin[x];
g[x_] := Cos[x];
and later need to use some UNDEFINED function, say h[x] which will be set to be f[x] or g[x] then
h[x]/.h->f will change the head (the function name) from h to f and you will finally get Sin[x].
Ofcourse you may change the x itself in a similar way.
yehuda


URL: ,

Subject (listing for 'Function Evaluation')
Author Date Posted
Function Evaluation Rajeev Vijay... 09/16/04 4:31pm
Re: Function Evaluation yehuda ben-s... 10/12/04 5:50pm
< Previous CommentHelp | Reply To Comment | Reply To Topic