Re: assigning functions
- To: mathgroup at smc.vnet.net
- Subject: [mg56252] Re: [mg56204] assigning functions
- From: DrBob <drbob at bigfoot.com>
- Date: Wed, 20 Apr 2005 05:31:09 -0400 (EDT)
- References: <200504190855.EAA02540@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
Clear@x f[x_]:=x^2; fprime[x_]=D[f[x],x] 2 x Bobby On Tue, 19 Apr 2005 04:55:01 -0400 (EDT), juejung <juejung at indiana.edu> 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 > > > > -- DrBob at bigfoot.com
- References:
- assigning functions
- From: juejung <juejung@indiana.edu>
- assigning functions