Where there are endless examples of said point, this one seemed pretty representative> dPdz2 := x-> piecewise(x<1,1,x>1,1/x); dPdz2 := x -> piecewise(x < 1, 1, 1 < x, 1/x)>dPdz2(z); { 1 z < 1 { { 1/z 1 < z> dPdz2(0);Error, (in dPdz2) division by zero
11/19/2005 10:52:55 PM
MAPLE IS THE VIRUS!
11/19/2005 11:52:46 PM
take the limit
11/20/2005 1:28:30 AM
works for me...? (try the restart command, you might have defined your function differently before)> f:=x->piecewise(x<1,1,x>1,1/x); f := x -> piecewise(x < 1, 1, 1 < x, 1/x)> f(z); { 1 z < 1 { { 1/z 1 < z> f(0); 1>[Edited on November 20, 2005 at 12:33 PM. Reason : .]
11/20/2005 12:31:34 PM
Ifuck[Edited on November 20, 2005 at 2:51 PM. Reason : nm]
11/20/2005 2:50:05 PM
^^ what version you got? it could just be Maple 7.
11/20/2005 4:55:01 PM
I am using 10. That could be it. Are you loading any packages that would change the behavior of piecewise? like with(Student); or something?have you tried to define it like>f(x):=piecewise(...);>subs(x=0,f(x));
11/20/2005 5:45:58 PM