You are on page 1of 5

No 1 ODE

 Please find the value of y and compare the absolute error of the
following equation for t=0 to t=2, with y(0)=1 dan h=0,5

dy
= yt 3 − 1,5 y
dt
by using the following methods:
a) Euler
b) Heun’s
c) 4th order Runge-Kutta
yi +1 = yi +
1
(k1 + 2k2 + 2k3 + k4 )h
yi +1 = yi + f ( xi , yi )h 6
k1 = f ( xi , yi )
1 1   1 1 
yi +1 = yi +  k1 + k 2 h k2 = f  xi + h, yi + k1h 
2 2   2 2 
k1 = f ( xi , yi )  1 1 
k3 = f  xi + h, yi + k2h 
k 2 = f ( xi + h, yi + k1h )  2 2 
k4 = f ( xi + h, yi + k3h ) 56
No 2 Boundary Value

And use finite difference approach with ∆x = 0.1 to


solve above equation.

57
No 3 Eigen Value

58
No 4 PDE Elliptic
 Please create a Matlab program to solve the elliptical
PDE, and try the program to solve the internal nodes
temperature of square aluminium plate bellow.

59
No 5 PDE Parabolic

60

You might also like