You are on page 1of 1

16.05.

2022
HACETTEPE UNIVERSITY
DEPARTMENT OF ENVIRONMENTAL ENGINEERING
CEV 206 -NUMERICAL ANALYSIS

ASSIGNMENT#5

1) Solve the problem below where t=0 to 2 where y(0)=1 with step size h=0.5 (60 pts)

𝑑𝑦/𝑑𝑡 = 𝑦 ∗ 𝑡 3 − 1.5 ∗ 𝑦

Solve with:
a) Analytically
b) Euler’s method
c) Midpoint method
d) Fourth-Order Runge Kutta Method

2) Use (a) Euler’s and (b) the fourth order Runge Kutta method to solve over the range
x=0 to x=1 using a step size of 0.2 with y(0)=2 and z(0)=4: (40 pts)

𝑑𝑦
= −2𝑦 + 4𝑒 −𝑥
𝑑𝑥
𝑑𝑧
= −𝑦𝑧 2 /3
𝑑𝑥

You might also like