11.07.2015 Views

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

266 • Chapter 7: Solving Calculus Problems> sol1 := dsolve({eq, ini}, {y(t)}, type=numeric);sol1 := proc(x_rkf45 ) . . . end procUse the odeplot command from the plots package to plot the solution.> with(plots):> odeplot( sol1, [t, y(t)], 0..4 );32.52y1.510.50 1 2 3 4tThe Dirac Delta Function You can use the Dirac delta function ina manner similar to the Heaviside function above to produce impulsiveforcing functions.> eq := diff(y(t),t) = -y(t)*Dirac(t-1);eq := d y(t) = −y(t) Dirac(t − 1)dt> ini := y(0) = 3;ini := y(0) = 3> dsolve({eq, ini}, {y(t)});y(t) = 3 e (−Heaviside(t−1))Convert the solution to a function that can be plotted.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!