functions with diff and intergrate



Richard Hennessy <rich.hennessy <at> verizon.net> writes:

> 
> Try putting ''() around the diff or integrate when defining functions.  Then
it will work because the
> function get assigned the 
> result of the diff or integrate instead of doing it, the calculation, later.
> 
I see, but very hard to code in this way.
I found

define(df(x),diff(f(x),x));
df(1); %, numer;

works as expected ...

Gru? HW