Professional Documents
Culture Documents
Teopengco - CE50P-2 Week 11 Laboratory Activity Numerical Sol of ODE
Teopengco - CE50P-2 Week 11 Laboratory Activity Numerical Sol of ODE
Teopengco - CE50P-2 Week 11 Laboratory Activity Numerical Sol of ODE
CE50P-2
Week 11 Laboratory Activity
Numerical Methods for Solving ODE
c. Using Euler method, approximate the solution at 𝑥𝑥 = 3.0 using a step size ℎ = 0.1
𝑦𝑦 ≈? ? ?
d. What is the relative absolute error at 𝑥𝑥 = 3.0 using a step size ℎ = 0.1?
%𝐸𝐸𝐸𝐸𝐸𝐸𝑎𝑎𝑎𝑎𝑎𝑎 =? ? ?
e. Repeat (c) and (d) using a step size ℎ = 0.05.
More accuracy can be achieved by lowering or reducing the value of the step-size.
1
a. Show that the particular solution is 𝑦𝑦 = (ln 𝑥𝑥 9 + 𝑥𝑥 3 + 2).
3𝑥𝑥 2
b. Use the 2nd, 3rd and 4th Runge-Kutta methods to approximate the value of y at x = 2 using a step
size of ℎ = 0.1. Complete the table below.
RK Method Step size Approx. value of y Abs. Err. Rel. Abs. Err. (%)