Question: piecewise function with Dirac - how to plot?

Hello

I wonder how the following piecewise function can be plot in maple (showing the dirac function).

f := piecewise(t < 0, 0, and (t >= 0, t < 1), 1, and (t >= 1, t < 2), (-2+t)^2, t > 2, t = 4, Dirac(t-4))

plot(f,t=-10..10) does not show the dirac function.

Many thanks

Ed

PS.  I saw a solution using op but I could not follow what was done.

 

 

 

Please Wait...