Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Define a function by referring to prior result?' topicStudent Support Forum > General > Archives > "Define a function by referring to prior result?"

Next Comment >Help
Author Comment/Response
Ben Crain
02/16/07 09:02am

I know how to define an expression by referring to a prior result. If I enter the command "D[Sin[x] Cos[x],x]", then do "f = %", f is defined as the expression which results from the differentiation. But I want to define f as a function of that result, i.e., I want to do something like:

f[x_]:= %;

But that doesn't work.

Thanks for tips,
Ben Crain

URL: ,

Thread 'Define a function by referring to prior result?' is now CLOSED
Author Date Posted
Define a function by referring to prior result? Ben Crain 02/16/07 09:02am
Re: Define a function by referring to prior res... Forum Modera... 02/16/07 09:55am
Next Comment >Help