Presentation is loading. Please wait.

Presentation is loading. Please wait.

Recapitulation of Lecture 12

Similar presentations


Presentation on theme: "Recapitulation of Lecture 12"— Presentation transcript:

1 ME 123 Computer Applications I Lecture 13: Numerical Integration of Simple ODE 3/31/03

2 Recapitulation of Lecture 12
In the last lecture, we applied the for loop structure to perform numerical integration using trapezoidal method: area under a curve; solution to a simple differential equation. Your homework was to program two more approximation methods: rectangular method; Simpson’s rule Homework feedback: Please document your program! Take advantage of the automatic indentation feature in the Matlab editor. It can help you see the for loop and if statement much better. Output statement slows down your code performance significantly! Avoid them within your calculation loop to save time. Do all the output at the end. Lecture 13 ME 123 Computer Applications I

3 ME 123 Computer Applications I
Road Map of Lecture 13 Solutions to HW 3-4 More application problems on using the for loop: marching solution to ordinary differential equation concept of time marching: know the presence, then predict the future implementation of the Explicit Euler method Introduce the debugger: set break point step through program hover over variables to get their values Lecture 13 ME 123 Computer Applications I


Download ppt "Recapitulation of Lecture 12"

Similar presentations


Ads by Google