Student Support Forum: 'How can I define a function as the results of D...' topicStudent Support Forum > General > "How can I define a function as the results of D..."

 Next Comment > Help | Reply To Topic
 Author Comment/Response Irving.Zhu 02/22/09 8:27pm Hi All, Here is the situation. I have a function say: f[x_] = x^3 + x^2 + x + 1 Taking the derivative D[f[x], x], I get 1 + x + x^2 + x^3. My question is how do I programtically define function g[x_]:=1 + x + x^2 + x^3? Defining g[x_] := D[f[x], x] is probably not the right way to go, as every time I evaluate g[x], it will compute D[f[x],x]. I want the result of D[f[x],x] memorized and defined as g[x]. In other words, I want g[x]:=1 + x + x^2 + x^3. Is there any way to do this? Thanks, Irving Zhu URL: ,

 Subject (listing for 'How can I define a function as the results of D...') Author Date Posted How can I define a function as the results of D... Irving.Zhu 02/22/09 8:27pm Re: How can I define a function as the results ... yehuda ben-s... 02/24/09 08:11am Re: How can I define a function as the results ... Xavier 02/24/09 09:30am
 Next Comment > Help | Reply To Topic