EulersMethod - y = y + h*(y-2); y1= [y1,y]; x=x+h; end e...

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

View Full Document Right Arrow Icon
%Eulers Method % x0 = 0; y0=1; x %First Run: h = 0.01; x=x0; y=y0; y1=y0; for n = 1:100
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: y = y + h*(y-2); y1= [y1,y]; x=x+h; end e %Second Run...
View Full Document

This note was uploaded on 01/24/2011 for the course ENGR 1020 taught by Professor Keith during the Spring '10 term at Utah State University.

Ask a homework question - tutors are online