Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: assigning functions

  • To: mathgroup at
  • Subject: [mg56206] Re: assigning functions
  • From: juejung <juejung at>
  • Date: Tue, 19 Apr 2005 04:55:03 -0400 (EDT)
  • References: <opspforld7yw49cj@juergen>
  • Sender: owner-wri-mathgroup at

sorry, i just found the solution myself. yes, the help file is helpful ;-)

f[x_] := x^2;
fprime[x_] = D[f[x], x]

works just fine!
the "set delayed assignment rule" for the second part was wrong.


On Mon, 18 Apr 2005 10:17:35 -0500, juejung <juejung at> wrote:

> dear all,
> i would like to do the following.
> assign a function:
> f[x_] := x^2;
> take its derivate:
> D[f[x], x]
> and assign the result of this to a new function, like fprime[x]:
> fprime[x_] := D[f[x], x]
> unfortunately that doesn't work.
> when i try to evaluate fprime[2] i get an error message.
> can somebody please help, this haunts me for a while now.
> thanks and all the best
> juergen

Using Opera's revolutionary e-mail client:

  • Prev by Date: Re: Integrate is driving me crazy, please help!
  • Next by Date: holding boxes verbatim
  • Previous by thread: Re: Re: (x-y) DiracDelta[x-y] does not simplify to 0
  • Next by thread: Re: assigning functions