slowlai

10 Reputation

2 Badges

15 years, 49 days

MaplePrimes Activity


These are questions asked by slowlai

Hi, everyone,

I am dealing with a simplified model of my real problem. Here is the function definition

f:=(x,lambda)->min(x lambda,0)

I can plot this function in plot3d:

plot3d(f(x,lambda),x=-2..2,lambda=-2..2, axes=boxed)

but if I try to plot the derivitive of this function w.r.t. lambda (which is a discontinuous function) by:

plot3d(diff(f(x,lambda),lambda),x=-2..2,lambda=-2..2, axes=boxed)

I get error message: Error, (in PiecewiseTools:-Convert...

Page 1 of 1