Function: fixD - prepare a function for differentiation with D

Calling sequence:

fixD(f)

Parameters:

f - a procedure name

Description:

Examples:

Defining f using defined function g :

> f:= x -> x*g(x^2);
g:= x -> 1 + x^2;

f := proc (x) options operator, arrow; x*g(x^2) end...

g := proc (x) options operator, arrow; 1+x^2 end pr...

D(f) does not work:

> D(f);

D(f)

Using fixD(f) to make this work:

> fixD(f); D(f);

proc (x) options operator, arrow; g(x^2)+4*x^4 end ...

Another function h defined using both f and g .

> h:= (x,y) -> f(x) + g(y); D[1](h);

h := proc (x, y) options operator, arrow; f(x)+g(y)...

D[1](h)

Using fixD(h) to make D[1](h) work:

> fixD(h); D[1](h);

proc (x, y) options operator, arrow; 1+5*x^4 end pr...

See also:

D , diff , makediff , Problems with D

Maple Advisor Database R. Israel, 2001