Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg56272] Re: assigning functions
  • From: Helen Read <hpr at together.net>
  • Date: Wed, 20 Apr 2005 05:32:45 -0400 (EDT)
  • References: <opspforld7yw49cj@juergen> <d42kri$3du$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

juejung wrote:
> 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.

Why not just use:

f[x_]=x^2;
f'[x]


-- 
Helen Read
University of Vermont


  • Prev by Date: Re: holding boxes verbatim
  • Next by Date: How to run multiple sessions on Mac OS X?
  • Previous by thread: Re: assigning functions
  • Next by thread: Re: assigning functions