This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Matlab Use ODE45 and ODE23S and note that ODE45 will take much longer than ODE23S since this problem is numerically stiff. 22.1 Matlab Only do parts (b) and (c). The ( x , T ) values for the analytic solution are provided in the answers below. Answers 20.1 (a) Analytic Solution (b) Euler with h = 0.5 2 Euler with h = 0.25 (c) Midpoint (this answer is incorrect – the first dy/dt calculation should be 1.1) (d) RK4 (this answer is incorrect – the first dy/dt calculation should be 1.1) All solutions plotted on the same figure: 3 20.9 20.15 21.3 After iterating the correction, y (2.5) = 3.271558, a ε = 0.061 21.6 4 21.11 22.1 Analytic solution at specified x locations: (b) 5 (c)...
View
Full
Document
This note was uploaded on 09/05/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.
 Spring '09
 RAPHAELHAFTKA

Click to edit the document details