









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lecture notes was distributed for Machine Learning course by Pakistan Institute of Engineering and Applied Sciences, Islamabad (PIEAS). Its main points are: Initial, Value, Problems, Ordinary, Differential, Equations, Euler, Analytical, Solution, Method, Taylor, Series
Typology: Exercises
1 / 17
This page cannot be seen from the preview
Don't miss anything!










Dr. Hanif Durad
Dr. Hanif Durad
Polking, ODE, P-
‘r’=rational choiceb is ICs vector
Dr. Hanif Durad
Dr. Hanif Durad
Dr. Hanif Durad
^ >> euler (for y
′=y using diffeq1) ans =^0
1.00000.5000^ 1.50001.0000^ 2.25001.5000^ 3.37502.0000^ 5.06252.5000^ 7.59383.0000^ 11.39063.5000^ 17.08594.0000^ 25.
Dr. Hanif Durad
st^1 Program using Euler Method
1.00000.5000^ 1.50001.0000^ 2.25001.5000^ 3.37502.0000^ 5.06252.5000^ 7.59383.0000^ 11.39063.5000^ 17.08594.0000^ 25.
Dr. Hanif Durad
nd^2 Program using Euler Method
Chapra B2, P-
Dr. Hanif Durad
y=dsolve('D2y+4Dy+3y=0', 'y(0)=3', 'Dy(0)=4')y = 13/(2exp(t)) - 7/(2exp(3*t))>> pretty(y)^13
7 -------- - ----------2 exp(t)
2 exp(3 t)
Dr. Hanif Durad
Dr. Hanif Durad Kiusalaas, P-
f=@(t,y) -2ty^2f = @(t,y)-2ty^2>> heun(f,0,1,1,4)ans = 0 1.00000. - 0. - 0. - 0. - 0. - 0. - 1. - 0.
f=@(t,y) -2ty^2f = @(t,y)-2ty^2>> rk41(f,0,1,1,4)ans =
Dr. Hanif Durad
Assignment-