This preview shows page 1. Sign up to view the full content.
Unformatted text preview: NDSolve command. Higherorder ordinary differential equations are treated in the same way. For example, given the initial value problem d 2 y dt 2 + . 5 dy dt + sin( y ) = , y (0) = 1 , y (0) = , t [0 , 15] the input instruction is sol=NDSolve[{y[t]+0.5y[t]+Sin[y[t]]==0, y[0]==1,y[0]==0}, y[t],{t,0,15}] with plot Plot[y[t] /. sol, {t,0,15}] 2.12 Solving differential equations with Maple 2.12.1 Firstorder equations Maple has a built in command for dealing with differential equations, which is the dsolve command. This command is used to nd a symbolic solution to a differential equation. The command dsolve(. . . , numeric) nds a numerical approximation. Consider the following rstorder differential equation dy dt = f ( y , t )...
View
Full
Document
This note was uploaded on 12/14/2011 for the course ECO 3023 taught by Professor Dr.gwartney during the Fall '11 term at FSU.
 Fall '11
 Dr.Gwartney
 Economics

Click to edit the document details