This preview shows page 1. Sign up to view the full content.
Unformatted text preview: change it was concluded that the function had converged. The first line entered in the command window was the function as an inline function followed by hold on. Then “n” was set to zero and the two repeated lines of code were entered. Below are the results in a compressed version to save paper. 30.1.1) >> f = inline('sin(t)*cos(x)','t','x'); >> hold on >> n = 0; >> n = n+10; >> [T Y]=myeuler(f,[0,12],.1,n); >> n = n+10; >> [T Y]=myeuler(f,[0,12],.1,...
View Full Document
This note was uploaded on 01/15/2011 for the course MATH 345 taught by Professor Staff during the Spring '08 term at Ohio State.
- Spring '08