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
- Spring '08
- Morphism, Homomorphism, Modified Euler Method