Faculty of Engineering / CHED/4" stage Subject/ Numerical Methods I
Duration: minutes Date and Time: 10/12/2020,
RETURN EXAM PAPERS WITH YOUR ANSWER BOOK
Answer All Questions
Part 1: MATLAB Time: 25 minutes [3 Marks]
Calculator is not allowed!
Qu [8 marks]
1. Write a program (Codes) in MATLAB to numerically solve the following system of equations
x? -y+2=cosw-1
-2x5-S Jy +z-2w
with only output real outputs F
mery—7
3x-y +3Inz—w
Write a program (code) to draw the graph of the equation e* sin x = x2 +1 to see it has two
roots. Then use the commands vpasolve and for to solve it.
End of Paper
Examiner: Dr. Mahfouz Rostamzadeh Signature:
Head of Department: Dr. Arkan J. Hadi Signature:
Page 2 0f2
en eeSEMESTER I Midterm exam [2020-2021]
Faculty of Engineering / CHED / 4" stage Subject/ Numerical Methods 1
Duration: minutes Date and Time: 10/12/2020,
RETURN EXAM PAPERS WITH YOUR ANSWER BOOK
‘Answer All Questions
Part 2: Problem Solving Time: 65 min [13 Marks]
Q2
‘Two nanoparticles A and B ina fluid have the motions f(t) = 0.6 + cos(nt) and g(t) =
sin(0.2rt) respectively. They meet twice in the interval [0.7.1]. Use an appropriate method with 4D to
find the
intersection time.
Q3/ [7 marks]
ib
Measurements of the velocity distribution of a fluid flowing
ima pipe (laminar flow) are given in the table. The low rate O (vol-
‘ume of fluid per second) in the pipe can be calculated by:
Q- fZ2nvrar
°
‘Use the data inthe table to evaluate O. (Use Simpson's Method with 4D)
05 non
33.6 | 297 | 245 | 178
2, Let v(r) = —0.8r3 — 8.37? + 0.8r + 38. By calculating the true value of Q = > 2nv(r)rdr, find the
relative error in compare with the result of part 1 (Use 4D).
‘Examiner: Dr. Mahfouz Rostamzadeh Signature:
g
‘Head of Department: Dr. Arkan J. Hadi Signature: om i| pz yt) =P o FE EA eee eee ri hie)
Ss hep
ieee oe ® |
| oo wets) #3) |
st to pert) Sia (o2Nt) — |
pat EA i (aaa )
ee ey agus) '
o
Por i
re ~ Sao ee 0 ae os Len
me oe L acme [opo# i f
; pila
| Ga] @3 @: me “pdr f= 2m om
ons B
os a, 195 Tela eam ea
EE alee | 3b? x6 (209 |o45 | PB f
| Ed ° & ot? ae SIS P Ase. 5363 [496 bie6 |072- 4226 } p07. 76) f
: 2 oe \
f AGE a a wR
| we ifantehtek &
: e tts ka
a2? ( c 2)yz do wf, B07
fe oe (2n- eee (— BP
Te = oF j542 ~ We
. Nea ies oe | LF
ieee |e PE
ae
250° ro]
é>? assume (Kp teal Jj ash me (
ian) }
| [at 14 MAA
> on x 5 CMS
ame (ayel)
jib asgune (21a)
siaie pm
>r cand = x") — Sa ft
ppeqnz= - 20x 5-5 ¥ Se ia
>7 eqn: - exp (O#¥9-Z lao
>> eae te Eee aero Ge aes m2 ;
> wpa solve Ceqnd y eanr sean 3 arty X,4,% wf2
Pees ce he
eee expe Sie) eo x rts
so pplee( enstean hs (eand] LF ed ) e
cn —
ee!
a Jott nee) i)
end