Unformatted text preview: o lines of code to be repeated. One line added 10 to the value of “n” each time >> n = n+10; The second was the line of code the directions instructed us to input with one modification. Instead of entering 10, 20, 30, ect by hand I changed the line of code to read as: >> [T Y]=myeuler(f,[0,12],.1,n); By making these modifications I was able to simply press the up arrow twice followed by enter and my program would automatically increment and plot the new function output on the graph. Once the new entry on the graph showed no significant...
View Full Document
- Spring '08
- Morphism, Homomorphism, Modified Euler Method