This preview shows page 1. Sign up to view the full content.
Unformatted text preview: dsolve command, it is necessary to provide also the initial condition. Given the following initial value problem, dy dt = f ( y ( t ) , t ) y (0) = y the input instruction is dsolve({diff(y(t),t)=f(y(t),t),y(0)=y0},y(t),numeric); Maple provides output in the form of a proc function (i.e. a procedural function) that represents an approximate function obtained using interpolation. This procedure can then be plotted. Since it is usual to plot such a procedural function, it is useful to give the output a name. Furthermore, since the plot is of a procedural function, it is necessary to use the odeplot rather than simply the plot command. In order to do this, however, it is ±rst necessary to load the plots subroutine with the following instruction. with(plots): For example, given the problem dy dt = sin(3 t − y ) y (0) = . 5 , t ∈ [0,10]...
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