Professional Documents
Culture Documents
··."-';M;'i"Elect.rical~and
Electronics Engineering Deparnnent
. .. . .
.'\UlllCIll"ll ;leU1111(iliCS all(i ,.I.'i()bi'llilllllllg .
Fina! Exalni n'2:fl6nJ;JulY'9t!l,~O'0Q~~~};~~;:';''0ii~7'!·1'~J~tiij\~t
~
'j1t(.;sl~·Oil.j [0 the bl3.5i (-:/)-'our J...7;01~1;;-"::g;! (2) 1'/0 qU2srion l~'i!/Z!.; Cii1s"'rFcrl\:l d:iring the CXD.nz
(3)Shoj\' uf!
,
J'OU,'" s/('!):; on:! C(I."/~1·~::":-::onlj)!~t{l!f()f7.:.· ;.-:; ./ clcch17a! J-7!oc':::s !!.~·:.!~!.?SotherH'ise r"?~ntioned.
(12.5 l\'larks for each question)
>XL.
y
Ql- Using Simpson's
•...----_.-~----
~ rule for double.' init"gration, eV31u<lte the following integral
~l11d
CiJll1P~ln.~ )'uur :lilswcr :,', t11l..' :tllalylict! :-:olutiol1 in lC']"!n nfrcbtj\"(· error. ( lJsC'
.~\x=().3, ..'.\F'O.,? )
. ']
(I ~,..'-:/- I I,) ':1.0'1.2
(;f~f 'U': \
PI
-0.2,0.4
0,_,
e'':: cos(2y) dy;dx
/ .
Q2- Solve :~~ == sin(x) + YJ y(O) == 2 '\ analytically then usmg simplified and
im;::\fovecl Euler's methods. Chcck )lour ansvvers bv fincli:12 the relative enol' to the
J. .t •._
i0 ~T,\ I
j 1 :C)~) . __L_._ . __ .__ ._. ._. . . J . i !
--_._---------------_. __ ._----------------------
Q3- Soh'c },I 2x2 - YJ == -lJ. analytically then USi:lg second order Runge- y(O)
Kutta (Heuns' method), compare your answcr with the :fourth. order Kutta's method.
Use h=! ondtabuiate vour onswers os ro!10H's:
"'"(J,~,;c,.:.:.J:~\;,'t;lc;r,:';;;"'".:r~:"''9EJ''''''';j::'''''~e'.:rYo,f,cRS'",I ':>: Eno,
~6~ii,L""":~~:I;;'~r·i!~!j i
. : , ; , \ : I
- . . i .
! ._....L..-.
L i ! .._. I. ..__ .. I ! .~ ~I ."
<:
--'
jOfh'l
rI I £'(l'/\~
/' f~ I--.rl
'-f, {,'T
/":7!·1/.. '.'/
/1,;:' U;,) ';'
U,l.
¢
'~; , ,_17" {-<:>"h1
....
..k..l .L t..t.l.'- ..•.
J.
rT~;'~;;:;':~if-,.T'
\....1 ~~.--..J
,t. •..••• , ••••••.~
Faculty of Engineering
'YH,/J':I~<::txicHl'U1~I,.t]ectronlc~bnglll~erlIlgi)elj,c..u .ilCilL •......................
'
;i~'W~
... ., ..' '£1-: 3()3'Ktl~~~i~~~~~~~f~~~~ge;::~~~~i~ogi4tilHT.ii1g~~~~~~~*c~<;f
Q Answer anv two questions to the best of your knowledge.
IP Carryall calculations to 4 digi ts
_~'\;o 9~~cstion~wi~l-be al2.~~~~re_~
during the exam. Time allowed:Z, hours
QI - Given a mC\trix of the form Ax=b where
2.9S00 1.7600 - 5.050~)] [-300.7336]
/1 co.
f 3.7300
L2.0223
B.l100
";".34~.2
0.-/6uO
O."~()}1..
h::..-: 2254.2222
1206.0751
((I) If vector b is chzmged by (~10%), what is the relative error introduced to the solution vector
of this system.? (5 Marks)
(1) What is the value of a that will make ttds ma.trix singular? (1.i\1ark)
(2) '\\That is the value of n that will make the condition number cf t.:.\ismatrix> 100? (2 Marks)
(3) Find the Eigen V'2l1ues of the system in term of a? (2 Marks)
Q2- For tht; Follov0-na d,ata p~vs:
I '~:'.' •. / 0 ,.,y , 0 5 -/ I nu '77 'l n ~"1 '
r:~2_':_"I_~-'---'';~' '(.<;( .
'0 ,.,: '.~
: ' I), l. J1 l~: 1 ")
L If ,j 1"')
l~~~~;JL.40~~~._.
;dfi~ Construcl (1 l\!cviJJc ~abJe thZlt intcrpolates at x:;:O'.~ usin,g only tl~c:first four points. (3 Mal'ks)
~..05))Fit a 3rd degree polynomial of the forrn y = ao + c<':l,X + az:';~+ C-: .. 3 using Non-linear Least
II ~ Square and use it to estimate f(0.6) <:..1'~·7 ( (~..MarkS1
~ Estimatef(O.6) using 3rJ degree ~ewton-Gregory interpolating l~""·~ynomial '(3 Marks)
,,-v(d) The table is for [(x) = ;\ e'':. vVrGG~ method gave the closest arLS-.':er to the correct answer,
(1 Mark)
~ Q3- The foV9\viI'\gsable is f% /::?X"i -7 r
A ~. 10.0(" , '0:4' 10.9" :-1.5 1.8 '
~~ .__ -rU\.l7J51735
!jT:(-J-rTl)()(jO 2.2.179 I 9 ..4877 . . 25.5337 _
~ __ ~__L_________
.-..-6::\) Find the first tl paramdcrs of th·,:: fitling p,olynomiql of the fom,:
,'.' f;1 d vc t lie system lIsil1~ Gall~siClI1 cl i III inntion \Vitho.~i voti12g (5 M~~~)
',' ! Iy l1Silll~ tilC G<lllssi811 :('lill1il1~lti( 11cocfficient~; find the. LU matl·ices. (5 [VIades)
• L i
.... --- I .
(Q2) Give the following!systcm 01 linear equations
! 2 x / - 4x 2 + 5X3 = 59;
:Ix/ - 18 .\?+ 2 .\;'7' 172 .__
;.··i··:'
- . I .
',' ~.
~.\'/'! \d.\) -iO''(.I---2~1 __
,
e) Soh/c thc system ufing.LU decol77p,)sitio17 with the follO\ving two sti?-ges,
L:' /. ~;olve !('I";: (8 rylnrIcs)
Ux-:;:. solvc fO\.\' :
I
/:j .C;!·,i''''· ::;;\[ (r:-:;lCrI11il'1:111l)
l
def(A)=dl f(!)*det(U) (2 I\1arkS).
j
_":r/v;)
~) , r~;~'=~T~~rlr~tr~3:'~'
-L =·-~2.51 ·1.4
•..c;
~q
/
;,;:;;~~:::;:"~:""!
..:
I I
·1 •. ,. A ~~·~jiin"
... .
htii~;tv e
~~0(qfZll~~t1\r~~F~t~
r·: r::~03 I'h! nle .' c2.l Techni ues & Programming
I Fi112 Exan1inCltion _
i
'(.'t
•. 0 .-----~.---~-------~ •• --_.-_- •• - •• _. _
I'l. i:..I.'I·/:".'J[II', !;F.-,o:,' ::: ",'.',' ;1.11/ 'I','l"ilu['IUI": ,I:. ['("'.'7UII::':'.";.,! Jl/~l' ,r;I.",?007 PO.I;' ; II
..•
p ,_ ..,.
,/
'.§d;~~~\ \1
, . '
JI.
11
Q 1., a~ Using th~cZOjd;:.~~LdC,
followm table. s -,
i!!)d.:l·l':
.
~u~,:;i'\il~C¥~~':~ of the rJ~cl:on
I
rcrrcsc;;!U; by :hc
/i!.". ,.·j-.1.0 -0Tl -OA! -0.]-'0.2 I-'~l O.S I 1.: I j,4 11 1.7 f-~
f(x ,'. 2.7183 1.11092 1.0Gr>] 11:00: 01 0:9920 10.S325 jO.5S':f3 1-).1(,;2 I 0.061,31 I O,OO'?i.-L 0.0(;03 r
.-
:
., ,- ..- '-~
. I
...•..
~
•... ;
~
I
., II
K: ~G:C'DJIu.ck to allo/.ycu i
;r"
I.,
I
I" .
I
tr.b 9'",2005
If V/'/-1J--"/
-- )
.~~~,L;~.:::c:;
," . . l"a.c;W!y ..qfE~~iineeririg'
'f.li&~~~~"of-(oflb'\:~'~;';'''Y~f' .•. ~ ..• _",- .,',.' .. _ • • ·,,:",,,:~,~••~.r."'~!/~.i--~:..•.• ~·,:... ~.-,~._ :", _ " ,"-:,':, .. ,. ,_
rl~4,Sjn(2X) fix
... -l..:-c.;.. o.
j - c. Z' 2.:~.?
1
}'_~)(,- .......ca) USil1g nonlinear 1eClc;t square fitting, find a 3rd degree polynorniaJ and use it .~()
Y,'y Y_,;) estimate f{o.5). j (6lVbl'k"')
,,) (b) T'·.r d d' . 1 d~fe.f,V.l
-r(/~
.Jsmg lon,\,U1" 1\'1(,(; 1 'crenCC,1l1C
f- 1 a Y_TO d c£ree J1ltC1VO
. J',atmg po 1 . 1
)'1101111,L
. •...•... -",-."",._~..~-. ~~-"'-
and use it to estimcttef(O.5). \'.", ',j C "I)" .){(.
('J) (() Mar"")
c(~ ,,C c) Given the true VahlE f(O. 5) =2.5125, calculate the relative enor in both case~,
~ zmd identify which method lS Inore accurate. ~" (3 \1 arb!
) I j
,
!::. .,- s!! r,.,} -j- "') (S-\ ):\ ' i::' f
-. \' '. S- - I" ; - ~.\
: ..' . ~ 'I ~ ..
:~,:~..-:'"~.~!~.h~~_~.~!!!R"2'_"!::..,~lQl2:~~":':-.,-~~-~""':":-"'?_""---=_!:..--=--~.'!~
...---'.' '~_·""--"-'-""'i.· •.....
;j ,J:'/::W.'1, Foil
,. :!(){)')
, ') J\ \)
-J:... _ • 1-.
(a) Write Zl c/c++ code for dynamic memory 3:1ocation for any matrix A of type float with
columns =m and rOW5=n. (1 Mark)
Cb) \Vrite two MatlCib. commands for finding :he condition number of matrix A. (1 Mark)
~c) Write the formula for the Eigen values of ~.;atrix A(do notfind the values). (2 Marks)
,//'Cd) Using two methods outlined in class, sho· ....that the matrix is ill-conditioned. (6 Marks)
.
v.
6~ ,( Compare'yoiIr
)f.
""",
Q3- Write down the"divid1e difference
---
results 'v',nth 3rd degree Nc;:·Unear Least Square ,·"echod.
,
(4 Marks)
/J
>J j -'i '-;:;./ ~''-;-. :;Hc'
(..<>-<)1""""' ' ....
/'/'
'
\ I i _.iiJJ ,: \i - 'r'
, -
r I' 0 0\
,,'
,~~ v •
"
-' .~ : \ Df.C"-".T \... t-;r ~
j
It- 6 \\~,\ L
"':5''''-1J
.
tv 'I
~J
;..
~
(2) Find the fi.rst 3 parameters of the fitting r::c1ynomial of the form:
"····p"cC~):= ao, +'L:f=l ai Di=o(x - Xi)
"....'.."1:.'.-. ;'"
Cb) Estimate el~Z/ using
i-Cubic interpolator with Xo := 0.0
2-Cubic interpolator \ovitl1 Xo := 0.4 ;./"
vVhirh gives Z1 hcttcr estimJtc'?
I / .;' -)
'\~)0-X\ /-~
UJJ (Yl
o ,N . 1) . D f ()Jtn-G·k i oJ
I. 1.-
[ ~+-ed
t iwtcd€ e
L-":J ~d ~0J'
C tti~ e:/J I
0- 261
"
~
f
-_._ \?() -=:. \
'F~--I~
. .....
s·' 6 g "I C\ \
C-' =- ':]. u S /