remove dependencies inside function?



diff(ydep,xindep) with the dependency removed is 0.

Either evaluate that before removing the dependency or use
'diff(ydep,xindep).  Remember, 'f(x) is *not *the same as '(f(x)) -- the x
is evaluated, just the function application is not evaluated.

           -s

On Wed, Oct 3, 2012 at 2:51 PM, Edwin Woollett <woollett at charter.net> wrote:

> diff11(expr,ydep,xindep) :=
> block([dep,dexpr],
>   dep: depends(ydep,xindep),
>   dexpr : diff(expr,xindep),
>   display (dexpr),
>   apply('remove, [ ydep , 'dependency ] ),
>   solve (dexpr, diff (ydep,xindep)))$
>