12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DEplot( ode, dep-var, range, [ini-conds] )6.2 Ordinary Differential Equations • 253Here ode is the differential equation you want to plot, dep-var is thedependent variable, range is the range of the independent variable, andini-conds is a list of initial conditions.Here is a plot of the function satisfying both the differential equationode1 and the initial conditions ic1 above.> DEplot( ode1, y(t), 0..20, [ [ ic1 ] ] );10.8y(t) 0.60.40.20 5 10 15 20tYou can refine the plot by specifying a smaller stepsize.> DEplot( ode1, y(t), 0..20, [ [ ic1 ] ], stepsize=0.2 );10.8y(t) 0.60.40.20 5 10 15 20tIf you specify more than one list of initial conditions, DEplot plots asolution for each.> ic2 := y(0)=0, D(y)(0)=1;ic2 := y(0) = 0, D(y)(0) = 1> DEplot( ode1, y(t), 0..20, [ [ic1], [ic2] ], stepsize=0.2 );

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

Saved successfully!

Ooh no, something went wrong!