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.

6.2 Ordinary Differential Equations • 2452.82.62.4x2.221.8–1 –0.5 0 0.5 1 1.5 2tFor the syntax of odeplot, refer to ?plots,odeplot.Here is a system of two ODEs.> eq1 := diff(x(t),t) = y(t);eq1 := d x(t) = y(t)dt> eq2 := diff(y(t),t) = x(t)+y(t);eq2 := d y(t) = x(t) + y(t)dt> ini := x(0)=2, y(0)=1;ini := x(0) = 2, y(0) = 1In this case, the solution-procedure yields a list of three equations.> sol1 := dsolve( {eq1, eq2, ini}, {x(t),y(t)},> type=numeric );sol1 := proc(x_rkf45 ) . . . end proc> sol1(0);[t = 0., x(t) = 2., y(t) = 1.]> sol1(1);

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

Saved successfully!

Ooh no, something went wrong!