odesimp_319 - h = tf - t; end y = y + dydt(y,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%Problem 3.19 % function yend = odesimp_319(dydt, dt, ti, tf, yi, varargin) f t = ti; t y = yi; y h = dt; h while (1) if t + dt > tf
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: h = tf - t; end y = y + dydt(y, varargin{:})*h; t = t + h; if t>=tf break end end e yend = y; y...
View Full Document

This note was uploaded on 09/21/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

Ask a homework question - tutors are online