On Thu, Oct 21, 2004 at 10:51:23PM +1000, Billinghurst, David (CALCRTS) wrote:
> > From: Nikos Apostolakis
> > Sent: Thursday, 21 October 2004 9:02 PM
> > To: maxima@math.utexas.edu
> > Subject: Derivative as a function
> >
> > Hello
> >
> > is there a way to define a function to be the derivative of an
> > other function?
> >
> > (%i43) f(x):=x^2$
> >
>
> Have a look at define()
>
> (%i1) f(x):=x^2;
> 2
> (%o1) f(x) := x
> (%i2) define(derf(x),diff(f(x),x));
> (%o2) derf(x) := 2 x
>
Ok, that seems to do it.
Thanks a lot. Thanks to Albert for his helpful reply to.
Nikos