You are on page 1of 94
Agiaall Lousight cal pclae ana Ata yall Aysse Cdiylad J olay Alia i palig alact Godly aaslll gal Sa) oily Gy pA0) Aull La ys) late iit laa Y Mobile : 009647709204269 Facebook : https://www.facebook.com/abualqasimrahem Telegram: https://tme/abualgasimaldarraji Email : abualqasimrahem@yahoo.com — So sahil —Sa0 2k hy University of Baghdad IPAS 2 College of Engineering Department of Civil Engineering, Assist. Lect. Faris S. AlSaffar "5 i ¢ (Answer only Five Questions, Including Q6 for all Questions use (5D) QI:/ Using Newton-Raphson method find the real root for the function :- f(x) tanh (x?-9) with initial point (xo=3.17), where d/dx(tanh (x)) = sé use | xi41- x; |< 0.0002. Q2:/ Using Newton's Divide- Difference Method, determine the (3 polynomial) for: (X= 2.1) for the following information: Xi 1.8 2.0 2.2 24 2.6 Yi 0.5815, 0.5767 0.5560 0.5202 0.4708 Q3:/ Using Linear least Square method, determine the equation for the following data, ‘and then find the coefficient of determination (1): \} Xi 0.2 0.4 0.6 0.9 13 1.5 17 1.8 Yi 4 1.25 1.45 1.25 0.85 0.55, 0.35 0.28 0.18 Q4:/ Using thres-points Gauss Quadrature, find the following integration:~ F=Jdoetsin(2m)).dt , Where: X1= - 0.77460 , x2 =0.00, w= 0.55556 , w2 = 0.88889 for the interval (0.1 - 0.5) QS:/ For the following. differential equation: dh/dt = 4.e" -2.h Using Modified Euler’s method find the (h) @ t= 0.4, where h(0)=1 , use (At = 0.1). Q6:/ A steady — state heat balance for a rod can be represented as : (@T/dx?) = (0.15). T Obtain a solution for (10 m) rod with T(0)=240 C° and T(10) = 150 C°,, Using finite-difference approach and Gauss-Elimination method, use (AX=2.5m) x TO) =240 T(10)=150 University of Baghdad Numerical Methods College of Engineering, Final Exam 2013-2014 Department of Civil Engineering Time : 3 Hours Assist. Lect. Faris §. Al-Saffar Tuesday 3/6/2014 (Numerical Methods Lab.) QIA) Using Newton’s method, write a Matlab function program to find the root of the following equation: ° F(x) = 100 x [x—sin?(x)]-10x2 Knowing that: f(x) = 100 x [1 — 2 x sinl(x) x cos (x)] Starting point (xo) = 0 Tolerance for x (epsilon) = 0 Tolerance far y (alpha) = 0 Maximum No. of Iterations (N) = 100 Then, DO NOT FORGET to write the inputs and outputs program. -1 8 11 7 Q1B) If a= [ 9 43 ¢| , what are the results of the following operations in Matlab? 5 01 2. 1. >> [LPJ=size(a) 2. >> Femax(a,{ 1,1) 3. >> C=a(L,:) 4. >> S=C (Good Luck) : ar (x 2 8.1%) | — Thad the veal Rest Using: Neusten’s Raph sono cthed - Kage BN 1 KIS 0.002. | F(x) | $CXn) 2 tanh (Xt-9) | ‘ PO) e Sech® Xt. LX) = 4% \ snece-9) | Xn I Coa) | Chay [ ntl * i |Z.\ F000] 0. #8188) 246910 | 2.85357 | 2, 85354196948 F| 2.95146 | 3.08898. | |3.08828| 0.49435| 426819 | 2. 98308 | (2.983 CB|_-0.100872 |5.90543 | 3.00016 | |3.00016|0.00097 |6. 00031 | 3.00000 ! - li 1 3.00000 — 2.00016 | 20.00016 < 0.0002, fe: ~The Real Root ‘Ss X =3.00000 2: - _ 7 _ a ot 0. . a Siang Méustan’s Divide — Oi Fbaren ce wiethad. — Bind Hel3 poly nanaial fair (X24) PL¥- 2D.) ge FUKa2I) = aia Caax) 3 (2.1- 10F 5.9828), Qu. jeplo-steee) =0.5815 000%20_6. 06894 +. 6. 00008 2 0.56577 "Pigg, mdse concen mn Cex - 2 XY, ) i B(4385)= (BA) (6.16 i gonna 0.77504 i Xe Ee 3g S BA 105 , Ve EE an 2a. O. 7H (dee ¥-a.% >My = 0-77 _(-0. PISCHN LOS 1.669 » Ya 1.60479 _ 0.79504 X yp, nExYfe -EXNEK) 2 8(4385)_ @. DC6Ib) In (€XE)-RY, |p (292) -E" 4.5 F821 % 3.43374 ¥2- 0.97485 => 2 =0.95034 Oa a sig to pet Gass Qnadachire Cad ; (10. singe) de _ 0.00. 0.390. 0.88889. 49,64048. 44] F746 0: 4549). 0.55556 BAY44Y | F462 ~ ib — HB ‘229 OFF 46 0.14508 0.55556 ee 25 PO de © 0.2 4 F829 TH BCR _ —es dh he 4o— 2h hia MoDy 2 butag (atc. Db. - . _ | ds cba why [i eho] - | Tet = hr pt) hy a , trphn [AS [tow PAR | her | bak 20/000 [ot | 2.0 -|-0.38064'1. 9po9z LIBOIF| 0.34259 0. 2 1.9467 |_0.61850 ae 1.93292 |.0.59091| o. 3 |I,87383|-0. 789391. 86 416 ea 0.765040. |I.F8 766]-0.89403/1. F121 fo-41). 78/21 2 hlo4) 2148121 . (= i C22 I 2.9375 Ty — Tas 240 lee pA) _. | To =2 Je Te 20.15 Tey (B22 0157. 3 \ Tp ~ 2.93845 Ta + Ta 20 ---@ @ point (3) ® -2 73 tT 5.15 Te (ExFF Te) = 2 7 +!89 Los Te 29% Ta) — 2.9375 Tey 2-150 -~-8 ) ~ Wy 293 FS He 2 — 150 ---G>—___-— 2.9275 Ty ~2.2BF5S Te - 90 ~@ - oI \ — ~ +} eee hy gf eae Add. te g ¢ | 22 FS Te — (2.2875) ley 2 (2.93 7S)(-150) - ‘To - 2937S Feoo+ Tey 2 —~— Tn — 46289 by5 440. 625 -_--@ | atdtiply 44 @ by 2.9379) and Sabtact hom ey 2.BFS Ty — (22895762891) Ke 2.23 FINLAND. F2.93FS 76 12.92 78 Te =0 ~ 12.4242 Tey 2 21884338594 => TO = FZ.0921/4 sub sititice ive % @ 2 Tre 58. 83315 substitute te x4 CO x 7,2 /0l. 78054 University of Baghdad = <2\~’ Second Year Class College of Engineering FAO >< Date: 13/6/2013 Civil Engineering Dept. +, Time allowed: 3 hrs. jp, Bui Z Dr. Ali. AbAhmed &Assist Lee. FarisSadeq Numerical Methods, \ (uo 2JVD p 4 ‘Note: Answer FIVE questions only/ for all questions correct to SD Q1:/A uniform beam is subjected to a linearly increasing distributed load. The equ for the resulting elastic curve is: 4 ty? _ ut yo Me (x 4 207s - 1x) 3H 4 6UK 720 EIxL Using bisection method to determine the point of maximum deflection - (dy/dx=0).Then substitute this value to determine the value of maximum deflection. Where: - w= 250 KN/m, E = 5x10° KN/m?, [= 3x10“m*, L = 6.0 m x, =0.0, xr=4.5 and IF(&_)1 $ 0.00002 Q2:/ Using Gregory- Newton's Divide Difference Method back ward Formula, determine the (54polynomial) for (X = 4.2) for the following information:- Xi i} 15 3 AS 6 7S Yi 3.6 1.8 1.2 0:9 0,72, 15 0.91429 : Ca j Q3:/ Using linear least Square method, determine the equation for the following data, and find the coefficient of determination (1), then plot the line: * (xT 889 [08s | toa [| 397 [127 [_9 99.1 yi | 146 | 167 | 153 22 19.5 1 16.6 Q4:/ Using two-point Gauss Quadrature, find the following integration: 32) coe REWKS Le Ps a lo= Te ken) 5) et *) ge for the interval (0-30) and H=20 w Ox? -y4L fe Q5:/ The differential equation that governs the change of water depth of a pond with time _ dh_ is: Sox Fd? Ah)x 2 g (hte) Vv Where:- d=0.25m,e=1m, A(h)=117m \ g=9.81m/s? , h(0)=6.0m ‘Using Modified Euler’s method find the time (t) ir) (sec.) at which the depth of water = __h=3.0m, step size (- 0.5m). Q6:/ A simply supported beam is subjected to a uniform distributed load (w,), the - gOveming differential equation is:- EI. (d°y/dx?) = (Wo.L.X/2) — (Wo-X7/2) uw Ursing finite-difference approach and Gauss-Elimination method, determine the de=flection along the beam (AX=0.5m) Where: wo=15KNim , E=2x10°KNim? , 1=3x10%m' , L=30m—Y >] WSO kw) LAB. QUESTION Q: Correct the following program using MATLAB language to find the area under the curve of the function (x? sinx ) in the interval (5-8) using Simpson‘s Rule? Solution: 1- Define the function in a suitable m.file f.m function (x) = fun(y) y =x? xsin(x); 2- Define the function in a suitable m.file Simpson.m cle input a=(‘Lower Limit of Integration’); input b=( Upper Limit of Integration’); input n=(‘ No. of points to be used); k=mod(n,2); if k=O disply(‘No. of points should be odd’) else h= (b-a)/n; uot wel eel) ok even =2: ae a to: z weight(1)=1; Rae 0; int= (h/3) *sum(y.*weight); disp ({‘ The value of the integration for the limits ‘ num2str(a) ‘to’ num2str(b) ‘=’ num2str(x)}) end 4.5 i 412.5 | 45 ~ it 4 2 42-28 [3s | | 3 2.25 |aaias _1) 4p fo52125 (2-295 \- 1 _IlY¥ (2.67188) 23 4 wr crept cre —_ —j¥. = -0-005m i - Arama Q%:/ hel5 ae a, Roxen ~ 1245 =-22 li B= =Fon) rm MF) 4 ol) Ac Eke) ) + a i + oer brea) Az ae 6 MOG | A |-— ! + Ora ULLAL EA) 43s Fw __ = I — | _l BOW= L Bo (-20F1 PAN Fy i: | 429) os ZI 2\, 22 ~A-2) a ] oe ew. Bo ee U- “DF, BY zo. eee l AnewerQ:f {yop yy eS ys i -0.%38 3 Cl. gy5 3 x V*: 0-880 Ll) [Roe,1, 2) «l&, p23) Ki yy Fre | o.121 84 : 0-000 94, Ao 0-140 60 = 0000005, 4Be 0.16643 P(260)2 FO + Sawa K-X,) 4 Coe kg Cx 1-1) EC mK) KE OK) = O- 12184 x (0.00093) (a50 +o) + (-0.000205)(i59- Jee), (#50 ~ Fao) + (0-026 900 4)(250- 920)(750~J10) (50-160) = © \47q, wt oX eo oo 5 RL Pays honk (x24) X=2 B15 Fede Seo h (La) eZ T fa) = ¥- Latce-a) Ka7 Xy few ~ o SeTe A) 7 Ko | Xart Bal 635878) 3.4128 7 '5638| Ses] 0-214 “A24) 1.145] 6.\ 294 1965, 3 x | 302 Bis. [zr ~VA4 o 3.15 o-~ VALS oa 12-4052 o- \\46 WEA 2 2.0230 0- 0232 xd 2 -44948 presen . cieeua 3 44, University of Baghdad College of Engineering Gwil Eng. Department ‘Numerical Methods Mid -term Exam Third } 3/4/20) Time: | QI:/ Using Newton-Raphson method find the real root for the function :- (x)= tanh (x?-9) with initial point x9=3.15 use (4D), and | xis - x; | $0.0002 . Q2:/ Using Newton's Divide Difference Method, determine the (3 polynomial) (X= 750) ( 5,D)for the following information: Xi 700 720 740 760 78C Yi 0.09770 0.12184 0.14060 0.15509 0.166 Q3y Using Linear least Square method, determine the equation for the following data, and then find the coefficient of determination (r°): Xi 10 20 30 40 50 60 70 80 Yi 1450 | 830 1220 | 610 550 380 70 25 Name: Class:° Des sy ye NW) Boe University of Baghdad Numerical Methods Third Year College of Engineering Mid-term Exam 14/2013 Civil Eng. Department Time: 1 hour Ql:/ Using Bisection method, find the point of max. value for the function :~ £(0)= \GIZ4) * tanhVOBIE) - 36 , for the interval (50S x< 200) os (28° GD), and’ | xi- x | <2.500. (3 ED Q2:/ Using Gregory-Newton's Divide Difference Method back substitution, determine the (3"' polynomial) for (X = 0.23) ( 4 D)for the following information: Xi 0.0 0.125 0.250 0.375, 0:50 Yi 0.0 6.24 1.75 4.85. 0.0 Q3:/ Using Linear least Square method, determine the equation for the following data, and then find the coefficient of determination t): Xi 6 12 18 24 30 36 42 48 Yi 0 45, 355 525 585 1195} 805 1425 “Name: DLAs 85 Class: . se SN) Boone University of Baghdad Numerical Methods Third Year College of Engineering Mid-term Exam 24/2/2013 Civil Eng. Department Time: 1 hour Ql:/ Using Gauss-Elimination Method, find the values of Xy, X2, and Xs for the following linear Equations: = 0.30X14+0.52Xs;+ — Xs=-0.01 ---—-(1) ~0.50X;+ — X_+1.90Xs= 0.67 -----(2) 0.10 X1 + 0.30 Xp + 0.50 X3 = - 0.44 —---(3) Q2:/ Using Newton's Divide Difference Method, determine the (3" polynomial) for (X= 2.1) for the following information: Xi 18 2.0 22 2.4 2.6 Yi 0.5815, 0.5767 0.5560, 0.5202 0.4708 Q3:/ Using Linear least Square method, determine the equation for the following data, and then find the coefficient of determination (1°): xi_[o1 | 02 [04 | 06 [| 09 [13 [ 15 [17] 18 ¥i_| 0.75 | 1.25-| 1.45 | 1.25, | 0.85 | 0.55 | 035 [0.28 | 0.18 Name: ceo sac) ) Class: _ gay erat \zZ “sa A VL 4g (o8 ¥ SOK e Hy = ~e 0 -O oo 1S oR ¥eCo'SM 4+ yxy + Bix 2. 67D 34 COP XM + 03h + 015152 — uy ® ay _ * —O 2: 262 FoSX pz ~ OOS o 3x2 + 2:Saxzz orzo! —@ oroK Ye 4 oot eo. ol @ * fx Fo Sent aici “eet £9 v i, ; — 1 a ~ oS : f i e246 (O38 +o: Sg a7 sie © 38d CO O44 Or orgs 0-206 —-&@ = — hed . ; fr vo p C07 = F005 24 , Sixra HE 010 266K3 = $e.0783 © © me. eckbxp= 210259 — v %32CR 92uT 198 “ oe\S2tx. & o.02 C2. dtuz)= 01 08 24 Xea a ee OD oy aang x\ £ Ot po 3C- IPN Fo OO FB 9244) 0 44 Wee Bek) FO shor) 2.2 omg 4 —F lo S 5 - 0/883 2.4 ssa = oy enn crt Me x at PBN = Key + Woyy Llvorh) + Uw ICK- x) peters o SHS + CPA I Woo ey + C21 -HBICI — Oy - 0 198P : ro Cet ah He 2) -2) C2\¥2-2) olf we, yood @N °70) 1) ~ odd ye NEvigh - UE) | S628 SS next — @x) OF RET (BHA RBS) - By 6:16 - BAY BBD ~ ONPO wy Be os BOS Bx Wy au as -— 0: 79S Y ou le2s- “ct 405 Ov PRS Coo Pel oS ooZ™4 geo= 16048 O-vez7y = ag er o ns Fa eo Bhi BSB? [600d + C paces e Ye NENyiR— EN Tyi Noeatr? wap “Third Year Class] ° ‘May 21,2006 ‘Time: 30 minrQulze root using the Method of False Position. (Note: Correct 10 six decimals). Quiz No. 2: Solve the following linear system to four decimals accuracy using Gaussian Elimination. (Note: Check the ‘accuracy of the results). 3.250x 1.500x +1500» 41.3332 +2400 +2.2672 +1333y +2402 +1333 +15002 40.767w +1333 +1.500" +1800" 1.3700 2.063 1875 1.088 Quiz No. 3: Apply Newton's polynomial to find (1.0) from the following table (Note: Use Cubic Polynomial and correct to five decimal places). H 0 7 2 3 a 3 % ‘s.02214 0.12025, 621447 126986 58941 320211 fey 0.98589 0.11994 0.06866 0.95506. 0.03300__| -0.88246 Quiz No. 4: Evaluate t 7746 0000 0.7746 w] 0.5555 0.8889 0.5555 FEES wine Thee Points Gasin Quacratre Formula (ote: Correct o fow decimal) vil Engincering Dept. Note: Attempt Four Questions Only .1 (25%): Determine the moment of inertia of the area bounded by.the triganometric,function », =sinx and the parabola =a? with respect to the y-axis using four points Gaussian Quadtature (use Table 1). The ‘moment of inertia of the area is defined as , [rae where dA = hdr and h= y, ~ ys (see Figure 1) Hint: Use Newton's Method, with starting point x, J, to find the intersection point between the two curves. Note: Correct to five decimal places. net Table 1: Values for Gaussian Quadratur —Niumber of points Values of 1 Weighing stor oeetian 0.86114 0.34786 - 0.33998 0.65215 0.2 25%): Apply a third-order News's interpolating polynomial to estimate /(1) and_(5) from Table 2. _ 7 Kote: Correct to four decimals). . H 2 Ea 3 é 0.1 63 14 3.1 06 3.4 Too _| 0167 | 1.1584] ~0.9576 | 13900_| 0.1381 3k yak y by the Modified Euler Method to find the value of yat x= 04 with 1 =0.1. Then, solve the same D.E. Fourth-Order Runge-Kutta Method with = 0.4 (ie, one step only).-The A's of the 4"-Order RK Method v, (0) =2, + are oe rete ten WB Chal antes k= Sx, thy, thnk) i : by = Ss, + $h.3,4 40k) . i kes Sa thay thy) . (Note: Correct to four decimal places). - Please Turn Over ae RRR s Q.4 (25%): Apply the Finite Difference Method to determine the deflection at the various nodes for the beam shown in Figure 4, in terms of w, L, and I'l (use h=0.2L). Then, Solve the system obtained using Gaussian__— Elimination Method. Use the following Fir.ite Difference stencils. (Note: Correct to four decimals). aa Dic erberwviie | | Paljeomiat | laterpoltion (OOO) Fey % | soot | cnt e y ‘ Tod #O-G-Gi)- 212) Sr = MG) Second | Conrat . 3(O-O-C-O-G) | eodiore fm | om T 4 y Q.5 (25%): Derive the following formulas us'- the Method of Un« :termined Coefficients: A. (10%): Newton-Cotes Integration | »-mula, Simpson's R ile (4 Rule) A [rene btrteayeay 4h sa, 420) , — B. (15%): Two Points Gaussian Quad:."ure Formula 1 1 j SlOdt mf -f)+ FFF) rd prove that [ Sead w 8 f sete i ees “Pinwiaanar Raton Cou.ece > Bomaaes Let x, = Land x, =3.5, rracy of the result), > S@.fy<0 Ox. Sn) ~ xf) f(ry)- £01) ‘Y892547 because|/(x,)]=0. Ans. - 3.250x +1.500y 41.3332 1500x +2400» +2.267= +1333 y +2.4002 +1.333y +1.5002 1333 0.767 1333 |G. tas x= 0,0587 ys 01645 Se fs) _ IOS) 2.972502 0779836 3.1901 6.10969 6 S 2872302 3,165 608097 1.609097 3S ONBAR94 3.16 2.022568 1.609097 2.022568 0.884394 0.41001 19916 14916 2.022568 0.002996 -0.410001 1.99255 18916 1.39255 0.002996 __-0.000008-__- 1.892547, 884394 0.41001 0.002996 0.000008 0 +0.767w = 1.3700 41333w = 2,063 +1506w = 1875 +1800w = 1.088 - ‘The matrix afier elimination - 15 - 1333 -0.767 1.6518 0979. the following linear system to four decimals accuracy using Gaussian Elimination. (Nove. “137 1.4307 0.7358 | O.758E Solution: ia ae i _ Wey 3 | 1.26986] 0.95505 [> ossie9 i om < 0.09315 4 3.58941 @ 081344 | oan} _-- 5 s20011| _onsaset a - S(V.0) = Ps(1.0} = 0.119941 + 072642(1 -.12023)—0.38189(1 ~.12023X( - 1.26986) +0.09115(1~.12023(1~1.26986)(I - 3.58941) = 0.90573 Ans. rr Eval ara f = — using Tes-Potnes Caust Quatrtare Prats tNene Correct 7 (ofour ye singe a decimals) 1 | -0.7746 0.0000 _ 0.7746 go RTE OT Ss Solution: a0 and b=5 => ((a),/i6) 2. f Let x end x4 =6, se LO) xe feed) x fea 7 0 6 1 027688469875 «3.9805 2 0 4698745 1.09908 2.360229 azs86e7 3 2.360229 4.698745 0.798647 0.9908 3.40393 0.2261 4 2.360229 3.40393 0.798647 0.226) 3.193651 0499798 5 3173651 3.40393 0.009798 0.2261 3.183215 -n.90016 6 3.173651 3.183215 0.009798_—-0.00016 3.183063, 0 ‘The root is 3.183063 because (x)= 0. Ans. oye save the following linear system to four decimals accuracy using Gaussian Elimination. (Ne. ‘Check the accuracy f the results). 3.250x +1.500y 41.333: +0.767w = 1.3700 +2400y 42.267: +1.333w = 5.268 S00x +1333y +2.4002 +1.500w = 1.875 Solution: : ~The marx after ettrnination —— 325A 15. 1.333 0767 | OE saa <2. ais. -2267 : 1s 1.333 [52a 0 [:181796: 0.7901} --0.1636 o jas Ls]! o 0 [HEB -09259 xe ps9. * Cate ; y= 22496 : = 05237 w= 0.9889 Ans. ae “Apply Newton's ‘polynomial to find (4.0) from the following table (Nove: Use Cubic Polynomial and correct to jive decimal places). 1 "2 3 Za Sian -0.12023.. [ 6.21a47_[" 1.26986 [+ 3.5894) [5.20217 : 0.98589 | 0.11994 0.03300" | -0.88246 : ) Solution: 4 | 358941 i 0.10769 5] s2oa1 | -osezaé 0.50688 | | teas 2| 621447] _-0.06866 (4.0) = P,(4.0) = 0.95506 ~ 0.42597(4 ~ 1.26986) ~ 0.02562(4 ~ 1.26986)(4-3.58941) +0.10769(4 - 1.26986)(4 -3.58941)(4 ~5.20211) =-0.38174 Aas. using Three-Points Gaussian Quadrature Formula. (Note: Correct 10 four | -0.7746 0.0000 0.7746 w| 0.5555 0.8889 0.5555 Solution: a=1,0472, 6=3.1416, 24-1007, 252. 2.0044 x(¢,) = 1.04724, +2.0944, f(x) iw x fe) wie fx) 1 0.7746" 0.5555 1.2832 0.1960 0.1089 . 2 D 0.8889 2.0744" 0.0848 0.0754 at 3 0.7746 -0.5555" 2.9056 0.0110 Pte she = 7 Ewe fede aor Page 4 of 4 Quizzes 1. Estimate the negative root of the equation f(x) = x? - Position Method. . (Note: Use six decimals and [x,., root) = fla.fib)<0 O.K. X1fp)—*eS 1) 3x41, ‘@, wherea = 0.000005) @ {5}, using the False- x 7 Te)-FE0) Xow x3 n fe) Fe) See) 1 1.000000 3.000000 2 3.000000 0.890625’ 0.750000 3 0.890625, 0.087484 0.117769 4 0.087484 0.007432 0.010637 5 0.007432 0.000623 0.000897 6 0.000623 0.000052 0.000075 7 0.000052 0.000004 0.000007 8 -2.000000_-1.879385__-1.000000__ 0.000004 _-1.879385 0.000000 _0.000000 ‘The -ve root is -1.879385 because |x, —x,|=Oand less than a = 0.000005 (and/or |/(x,)|=0),Ans. ta 3 2. Find the local maximum point of the equation (2 using the False-Position Method. (Note: Use six decimals and |/(x,)] < 8, where = 0.000005 ) Solution: FQ)=f'Q), 2 2? 4-1, within the interval (-1, 1.5], a= (and b=15 (po: FQ)=1: and F(1.5)=-0.125= F(a).F(6) <0 O.K. iF (ra) ~ nF (XL) FQ@R)- FQ) Let x, =Oand xq =15, Page | of 4 yy, wh ‘UnavERSTTY OF BAGHOAD TWomGREAL weTOOS" ‘COLLEGE OF ENGHEERNG ‘Tro Year CuAss (Cra ENGNEERING DEPARTMENT 2005 n xe 2R Seo) See) Xe Veal I (0.000000 ‘1.500000 1.000000 -0.125000 1.333333 (0.629630 2 0.000000 1.333333 ‘1.000000 0.629630 0.818182 0.906837 3 0.000000 0.818182 ‘1.000000 -0.906837 0.429078 0.208237 4 0.000000 0.429078 -~—1.000000- 0.208237 0.355127 0.020595 5 0.000000 0.355127 1.000000 -0.0205950.347961_—_0.001753 6 0.000000 0.347961 _-—«'1.000000--0.001753 0.347352 0.000147 ~ 7 0.000000 0.347352-——«*1.000000 0.000147 0.347301_-~—0.000012 8 0.000000 0.347301__—*1.000000__—-0.000012_— 0.347297, _—_—(0.000001 The +ve root is 0.347297 because |/(xc)| = 0.000001, and less than £ = 0.000005. The maximum point is 3. Est Bisection Method. (Note: Correct to Three decimal Places). ‘Solution: a=0.l and 6=0.81 (negative root) S(0.12) =0.588, and f(0.82)=-0.951 = f(a).f(b)<0 OK. l OL te) = 0,347297 and y = f(0.347297) = -0.82999 Ans. te the root of the equation y = sin2xwithin the interval x=0.L4 and x=0.8x,, by using the a R Sx), Ses) En 1 2.513 0.588 0.951 1414 2 2.513 0.309 0.951 1.963 3 1.963 0.309 0.707 1.688 4 1.688 0.309 0.233 1551 5 1,688 0.040 0.233 1.620 6 1.620 0.040 0.098 1585 7 1.551 1.585 0.040 0.029 1.568 8 1,568 1.585 0.005 0.029 1577 9 1,568 1.577 0.005 0.012 1572 10 1,568 1.572 0.005 -0.003 1570 u 1,570 1.572 0.001 -0.003 1571 12 1.570 isa 0.001 0.001 is7r The root is 1.571 because [x12 x1 (and/or |f(x12)]=0). das. Page 2 of 4 0, =P {a+ sina cos(a+25)} z The vertical stress increment due to an infinite strip load is shown as follows ‘Twn Year Cuass NOMERCAL METHODS 2005 | + Determine the value of the angle a if P=100 Ib/ft, 6=x/4 and Ac,=10 Ib/f”, using the Newton's Method (Correct to four decimals). Solution: Substitute P=100 Ib/ft, 5=2/4 and 4c, =10 Ib/ft into the stress equation as follows 10-2 fassina cos(a+2xE)) = 10m =100{a+ sina cos(ar+=)} and costa +5) = ~sina: then 10x =100[a +sina (-sina)] => 10x =100[a-sin’ a } 100 (a ~ sin? J-1027=0 < Theequation( x)=0 ) and f'(a)= 100[1-2sinacosaJ=0 —3x7—4x+4 using x= g(x) Method. Solution: f(x) =) 3x7 -4x44=0 4x44 or 3x? then B12(2) = tf} 4x44) . For +ve root a Faas = 8108) = HAC 48, +4) For —ve root Syot = B22) = by = 44 #4) Let xo0.0000 for +ve and —ve roots For +¥e root iG) = 1.1547 -3.0792 0.554 “1.0332 0.807 0.6565 0.6576 0.3564 0.7425, 0.2145 0.6927 0.1223 0.7215 0.0721 0.7047 0.0417 0.7144 = 0.0244 0.7087 0.0142 10 0.7121 -0.0083 MW 0.7101 0.0048 12 0.7112 -0,0028 130.7106 0.0016 werauaun—ol 4 o7i1 -0.001 15 0.7107 0.0006 16 -0.0003 7 0.0002 18 0001 ‘The positive and negative roots are 0.7108 and -1.4893 because |x, - stespectively. Ans. d+ Sati Mine) . FF For ~ve root (gx02)) Jatt fons) 3.0792 0.5595 0.1733, -0.0507 0.0151 -0.0045 | = 0.0000 for w= 17 and 7 Page 3 0f 4 a. S a. (NUMERICAL METHODS A University of Baghdad ‘Third Year Class College of Engineering FINAL EXAN June 11, 2008 vil Engineering Dept. Instructors Time: 3 hours Hayder Ab-Baghdady and Or. Amer Farouq__* (Note: Not more than Four Questions to be Attempted Q.1 (25%): a. (15%) Figure 1 shows a uniformly beam subjected to a linearly increasing distributed load. The equation for the resulting elastic curve is = x5 + 202? = Lt. Y= Tape CO + 2 ) ; By using the Bisection Method determine the point of maximum deflection. Then determine the value of maximum deflection. Use L=6m, 2x 10° KN/m?, |= 0.0003 m* and w=175kN/m. Express your results in inches. (Note: Correct to three decimal places). ee b, (10%) Derive the following Newton-Cotes Integration Formula, Simpson’ Rule (2 Rule) using the Method ‘of Undetermined Coefficients: szet2h h f F@)dx = SUF Ko) + 4F Go +h) + fo + 2h)] (Hint: tetx=0) 12.2 (25%): The loading acting on a beam shown in Figure 2 is represented by the formula » Use Four-Point Gaussian Quadrature to determine the magnitude of the resultant force. The magnitude of a distributed load can be defined as ’ wis)" Volues for Gaussian Quadrature f Pts Value oft” Welghtl 4 86114 0: A 0.33998 0.65215 lA 30m a 0.33998 0.65215 086114 786 7 Figure 2 (Note: Correct to five decimals). 13 (25%): a. (12%) Solve the differential equation y' = fx Fy, y(0.4) = 0.41, by the Modified Euler Method with h = 0.1, to estimate f (0.8). (Note: Correct to four decimals). Please Turn Over 'b, (13%) The shear stress, in kips per square foot (ksf), of nine specimens taken at various depths i low, _ e ina clay stratum are listed inghe table bel & @ g & Pep [9 ; 58 ; . Sa 1.3257 | 1.6578 | 0.5430 | 0.6098 | 0.7112 | 0.3345 | 1.5431 | 11576 | 0.8678 Determine the shear stress at a depth of 7.5 m using a third-order Newton’s interpolatirig polynomial. (Note: Correct to four decimals). : gerd 2.4 (25%): Apply the Finite Difference Method to determine the deflections at the various nodes (use A = L/S) for beam on elastic foundation shown in Figure 3. Then, solve the system obtained using Gaussian Elimination Method. (Note: Correct to four decimal places). ‘he differential equation describing the behavior w(x) = 203/13 —x/L +1) of the beam is dty gat hy =49@) assume the followings: } = 25x108 KN/m? .0053 m* 1 = 14000 kN/m? :=5m Stencil Representation ofthe Finite Ditference Approximation for y!” = <¥ perwative 1 = Be De-a — AY-1 + 6H — 4991 + Yival By eo} eet |_ rn ent e8 Ma Mer Mar Yar Mar = Mea 4Yer + 4% 5 (25%): Determine the steady-state nodal temperature of the plate shown in Figure 4, using the indicated grid and the following constant and derivative boundary conditions: Taye! ! Ty = 0.75T (on the top edge) ‘ T,=0 (on the right edge) \T yw T = 150 — 40x,°C (on the left and bottom edges) ined y Ty = 0.787 T = 150y - 40x 1e governing partial differential equation Is the following Laplace uation VT = Ty + Ty =0 ere T = 150y ~ 40x x = Ay =K=05m ote: Solve the system obtained using Gaussian Elimination Method. lote: Correct to two decimal places). ‘Note: Attempt Four Questions Only ae = 1 5%): Solve the following linea! system using Gaussian Elimination, to four decimals she 1 -2x -Ty +2 +5w = -5S 2y +42 43w = -4 3x +5y +10w = -47 9x -4y +2 -6w = 4h Q2 (25%): Solve y+: tising Finite Differences Method. Assume arxh Q.3 (25%): Use Gregory-Newton forward-interpolating polynomial to estimate’ f(x) from Table 1. Then, apply three points Gaussian Quadrature (Use Table 2) to calculate the area bounded by the estimated polynomial ‘£(2) and x-axis on the interval between x=1 and x=4. >™ T 2 3 100 1.0000 2.0000 3.0000 2 4(%) |-5.0000 1.0000 9.0000 25.0000 55.0000 y os Q.4 (25%): Solve the differential equation ye 0) =2.0 , by the Modified Euler Method with 4=0.1, tocestimate y(0.6) . Correct to four decimals accuracy. Q5 (25%): Solve the mixed boundary valve for the Laplace Equation Vu = u,, +u,, =0, in the region shown in Figure 5, using the indicated grid and the following boundary conditions: u=3x-y on the right edge u=0 —— onthe left edge u,=6x onthe upper edge u=3x onthe loweredge en (Note: Correct to four decimal places). Cousce or Enc Dano ARCA ‘om Enomaenens DPARTONT 2006-2007 Group A Quiz No. Ai: Find the intersection point between the function y, = x? and y, = 1— 3x by using the Bisection Method within the interval [~1, 1.5]. (Note: Correct to 6D and use € = 0.0006). Solution: lety, = y2 0x9 =1-3x « f(x) =x34+3x-1=0, a=-1,b= 5. f(-1) = -5 and f(1.5) = 6.875 and satisfying f(a). f(b) <0 0.K. Let x, = aand xg = b (Note: One can assume a = 0 because f(a = 0). f(b = 1.5) < 0) 1 3G + en) n i ph ES Ge) Sr £Gm) 1 _--7/90000 «1.500000 ~—~-$.000000 6.875000 0.250000 0.234375 2 0.250000 1.500000 0.234375 6.875000 0.875000 «2.294922 3 0.250000 0.875000 0.234375 2.294922 0.562500 0.865479 4 0.250000 0.562500 0.234375 0.865479 0.406250 0.285797 . 5 0.250000 0.406250 -0.234375 0.285797 0.328125 0.019703 “ 6 0.250000 0328125 © -0.234375 (0.019703 (0.289063 —-0.108659 12 0.322021 (0.323242 --0,000543 0.003501 0.322632-—«0.001479 5 13 0.322021 __0.32262_—-0.000543__ 0.001479 __0.322327_ 0.000468 Then the root is 0.322327 because |x13 — X12 < €, 0.322327, y = 0.033488) Ans. ‘Numerical Methods by Hayder A-Boghdody Page 1 of 12 ‘UnERSTvOrBaciOAD (Cousot or Emcnecnn “Tmo Yeancuass (om emcees Derrrcer 2096-2007 Quiz No. A2: Solve the following system by using Gaussian Elimination Method (Note: Correct to 30 and check for accuracy). 6x —4y -2z +2w =3 2x +8y -42 +2w =4 Ay +1lz -6w =8 2y -3z +10w =6 Solution: 6 7a ae 2 0 9.333, 3.333 1.333 2 8 4 2 ° ° 12429 “sn ° 4 1 6 ° ° 0 saealeshe Ay) oO oO -2.286 9.714 o 2 3 10 x: 0.925" y 0.550 . = Ans. Zz 0.950 w- ).775- ‘Numerical Methods by Hayder Al-Baghdady Page 2 of 12 i &e Drerav0r Baran ¥ ‘Wonca eID |, couse or enemas ‘Tuo Yeancuass ‘Cv ncn Dera 2006-2007 Quiz No. A3: Apply Gregory-Newton’s Backward Divided-Difference interpolating Polynomial to the data of the following table and evaluate fourth-degree polynomial for interpolate x = 17.35 (Note: Correct to 4D). eae a] ci5 ae] abil 13.0000 | 11.7500 | 16.7500 | 10.5000 | 15.5000 0.0395 3.3610 4.2653 3.6891 | 0.9306 e ve vw 13.0000 0.0395 “1.5954 14.2500 “1.5859 4.0819 2.4865 -3.2338 15.5000 16.7500 18.0000 X=%q_ 1735-18 _ = 1425-1300=125, r=">-*=—T>-— = 0.5200 -0.5200( £(47.35) & P4(317.35.4) = 4.9530 — 0.5200 x (-0.2123) + $200 +1) _ 3 se70 2 =0.5200(—0.5200 + 1)(—0.5200 + 2) * al 4¢-70.5200(=0.5200 + 1)(=05200 + 2)(—0.5200 +3) a (Note: The exact solution is f(x = 17.35) = —3sinx + 0.1x = 4.7274) 6.0000 +~——4 5.0000 — 4.0000 3.0000 i 2.0000 tn 1.0000 Pte) 0.0000 S 1.0000 ‘2eoco Lt (-4.3952) (-1.1615) = 4.9210 Ans. ‘Numerical Methods by Hayder Al-Baghdady Page 3 of 12 AN Se ‘UenSRvoF BAGS Wonca 0 ‘coutee oF oneenns “Tho Year sss Con Encmenns Doran 2006-2007 Group B Quiz No, B1: Estimate the local maximum point of the equation y = 3 — 4cos 2x, (0.17, 0.87] by using the Bisection Method. (Note: Correct to 3D). Solution: Let f(x) = y' = sin2x + assume. a = 0.107 = 0.314 and b = 0.81 = 2.513. F(a). f(b) < 00.K. n Xt >R Xm £Gm) 1 0314 2.513 1414 0.309 2 1.414 2.513 1.963 -0.707 3 1414 1.963 1.689 0.233 4 1.414 1.689 1551 0.039 5 1551 1.689 1.620 0.098 6 1.551 1.620 1.586 -0.029 R 1570 1572 1571 0.000 13 1570 1571 1571 0.000 Then the root is 1.571 because [x13 — x2! = 0.000, and the local maximum point is (x = 1.571, y(1.571) = 3.500) Ans. ‘Numerical Methods by Hayder Al-Baghdady Page 4 of 12 \ @ & ‘Uren oF Bacon ‘CousstoF Ercmcnns “ano Year Css (com Encmcrnn OraRTORT 2006-2007 Quiz No. B2: Solve the following system by using Gaussian Elimination Method (Note: Correct to 3D and check for accuracy). Sx -4y -22 +2w =3 +7y -42 +2w 4y +112 -6w 2y 32 +10w Solution: 5 “4 2 2 3 o adi 25g 4 ° 0.000 13.286 7.143 S714 0 4 11 6 8 o 0.000 0.000 8.430 5.656 ° 0.000 “1.857 9.429 4.857 ° 2 3 10 6 x) 71.313 y|_|o.s32 = Ans. z| |0.791 wi loe71. ‘Numerical Methods by Hayder Al-Baghdady Page 5 of 12 \ &®e a — eer Pau esa —— ome Quiz No. 83: Apply Newton's Divided-Difference interpolating Polynomial to the data of the following table and evaluate third-degree polynomial for interpolate x = 7. (Note: Correct to 4D). x 1200 | 6500 | 4800 | 5200 | 0750 | 8000 fd "| 04871 | -03202 [21375 | -1.1944 | 1.8201 | -4.4365 * Solution: ofa fed ist) 2nd 3rd 4.8000, 5.2000 1.1944 re 0.6725 pO 6.5000 -0.3202 -1.2202 2.7442 {8.0000 |_-4.4365 £(2.3) & Py (2.3) = —2.1375 + 2.3578(7 — 4.8) — 0.9913(7 — 4.8)(7 — 5.2) 0.0715 (7 — 4.8)(7 — 5.2)(7 - 6.) = -1.0178 Ans. (Note: The exact solution is f (x = 7.000) = 3 cosx — 0.Sx = -1.738) 3.0000 2.0000 1.0000 4 0000 | -r00084 poo mlx) 2.0000 ii) 3.0000 4.0000 5.0000 ‘Numerical Methods by Hayder Al-Baghdady Page 6 of 12 «. @S€ ‘Urdararor Bacon Waseca erent D375 roorenet om tac DO MTIONT 2006-2007 Group C Quiz No. C1: Find the local maximum point of the function y = 1 — cosx — Position Method. (Note: Correct to 4D). [—5,0] by using the False Solution: let f(x) =y' +-assume ‘a= 5 and b = 0. F(@).f() <00.K. Let x, = aand xq = b ng = fen) = ¥0 fH) “FER = FG n fe AG) £Gn) Xe FG). 1 0.0000 0.9522 -1,0000 -2.5612 0.6255 2 -2.5612 0.9522 0.6255 0.3476 3 2.5612 0.3476 0.6255, 3.1827 0.0003 4 -3.1827 0.3476 -0.0003 0.0000 5 -3.1827 0.0000, -0.0003 0.0000 6 -3.1827 0.0000 _ 0.0003 73.1831 0.0000 Then the root is —3.1831 because|x, — xs| = 0.0000, and the local mcxir. um point Is (x = —3.1831, y(-3.1831) = 1.9577) Ans. ‘Numerical Methods by Hayder Al-Baghdady Page 7 of 12 \ Se (Courct oF Ercncenn Tio YARCASS ‘Ovi nematic Deraxrivet * 2006-200 ‘er OF BAGO i 7 Quiz No. C2: Solve the following system by using Gaussian Elimi check for accuracy). ‘ation Method (Note: Correct to 3D and 3.250x +1.500y +1.333z +0.767w 1.500x +2.400y +2.267z +1.333w = 2.063 1333y +2.400z +1.500w = 1.875 1333y +1.500z +1.800w = 1.088 = 1370 Solution: 3.25 15 1.333 0.767 1.37 0.000 1.708 165200." 0.979 1.431 15 24 2.267 1.333 2.063 ° 0.000 qi 0.736" 0.758 ° 1.333 24 15 1.875 0.000 0.000 0.000 FRORmOESC 73 0.000 0.000 0.211 1.036 0.029 ° 1.333 15 18 1.088 x) 7 0.059 y|_| 0.165 . z| | osto wi 19,193. ‘Numerical Methods by Hayder Al-baghdady Page 8 of 12 SB ‘UneasroF Bacon ‘Wonca TIO ur one ccc ‘eres (va Enametnn DraeTO 2006-2007 Quiz No. C3: Apply Gregory-Newton’s Divided-Difference interpolating Polynomial to the data of the following table and evaluate fourth-degree polynomial for interpolate x = 3.4 (Note: Correct to 3D). =%,_ 34-13 xo %e = 1.615 1.615(1.615 - 1) £@4) = P34) = 0.581 + 1.615 x (-2.222) + i 2 (0.499) 1.615(1.615 ~ 1)(1.615 — .615(1.615 — 1)(1.615 - 2)(1.615 — 4 2615(1615 - 1)(1.615-2) (, 575) , 1615(1615 - 1)(1.615 - 2)(1.615 ~ 3) 7 7 (-3.037) = -2.928 Ans. (Note: The exact solution is f(x = 3.4) = sinx + cosx —.0Sx = —2.922) Pte) oo eeste) ‘Numerical Methods by Hayder Al-Boghdady Page 9 of 12 YX SO ‘UetnrvoF Bacon Wonca MIO ‘couscr oF ExcacenG ‘Cv Ecc Denaro Group D Quiz No. D1: Determine the roots of the quadratic equation y = x? + x — 1 = 0,[—2,2] by using the Bisection Method. (Note: Correct to 6D and Nmmax = 5). Solution: Assume that there are two roots (positive and negative) to be checked later. let fe) =y 1 im = 5 +e) For positive root, assume a = Oand b = 2 f(a).f(b) <0 O.K. % en FG) fn) Xu £Gm) 0.000000, 2.000000 -1.000000 5.000000 1.000000 1.000000 0.000000 1.000000 .000000, 1.000000 0.500000 0.250000 0.500000 3.000000 9.250000 1.000000 0.750000 0.312500 0.500000 0.750000 0.250000, 0.312500 0.625000 0.015625 1.500000___0.625000__-0.250000__0.015625__0.562500_-0.121094 weone|s Then the positive root is 0.562500 because Nmax = 5 but € = —0.121094 Ans. For negative root, assume a = —2.and b = 0 + f(a).f(b) <0 0.K. = rene Pay RE sii e " 2.000000 0.000000 1.000000 1.000000 -1.000000 _-1.000000 -2.000000 ~1.000000 1.000000 1.000000 -2.000000 -1.500000 1.000000 0.250000 .750000 -1.500000 0.312500 -—_-0.250000 .625000__-1.500000___0.015625__-0.250000 625000 0.015625 .562500__-0.121094 anes ‘Numerical Methods by Hayder Al-Baghdady Page 10 of 12 0 isa specifictolerance. 2. After N steps, N is fixed. rc 9) University of Baghdad ‘NUMERICAL MeTHoDs Third Year Class College of Engineering FINAL EXAM June 16, 2008 Civil Engineering Dept. Instructors Time: 3 hours Hayder Amer Al-Baghdady and Dr. Salah Rohaima Al-Zaidee Note: Attempt Only Four Questions Q.1 (25%): Approximate the root of the following function using the False Position Method within the interval from x = 3 to x = 9. (Note: Correct to four decimals and use Nmox=6) 7S (or-2) Q.2 (25%): Determine the moment of inertia of the shaded area shown in Figure 2 with respect to x-axis. The moment of inertia of the area is defined as. te= f aly Where e*sinx+1 3 y dly Fax Use Four-Point Gaussian Quadrature to estimate the above integral. (Note: Correct to five decimals). 05 15 Values for Gaussian Quadrature Figure 2 a 0.65215, 0.33998 0.65215 0.86114 0.34786 Q.3 (25%): A tension test was performed on a steel specimen having an original diameter of 0.503 in. and ‘gauge length of 2.00 in. If the specimen Is loaded to 13.0 kip, determine the corresponding elongation using a third-order Newton’s interpolating polynomial and the data listed in Table 1. (Note: Correct to four decimals). Table 1 ition (i 0.0 0 25 0.0009 65 0.0025 E 85 0.004 2 9.2 0.0065 3 98 0.0098 12 0.04 14 0.12 14.5 0.25 142 035 oO On 02 03 04 os 13.2 0.47 Elongation (in.) Please Turn Over x6 & © * @.4425%): Solve the differential equation 2fy-Inx+1 2y=tne +3 ya) =0 by the Modified Euler Method with h = 0.2, to estimate y(1.8). (Note: Correct to four decimals). Q.5 (25%): Apply the Finite Difference Method to determine the deflection at the various nodes for the beam shown in Figure 4, in terms of w, L, and El (use h =.L/5). Then, Solve the system obtained using Gaussian Elimination Method. Use the following Finite Difference stencils. (Note: Correct to four decimals): Be erbenate |. eta, | weralaton ro=2 second | Convot any £3 = MG) ‘Second Cemtrot B16) $3 = ven) routs | cena £1) $2 = a0) oun | cent EI Constant Figure 4 LAB. QUESTION Write a MATLAB program that will find an approximate root of an equation f(x) = 0 in the Interval (a, b] using the Bisection Method. The program should proceed with the method only if f(a) and f(b) have * opposite signs. Use the following termination criteria in the program: 1. If If (%m)| Sa, where a > 0 Is a specific tolerance. 2. After N steps, N is fixed. 2.@@ : NUMERICAL METHODS ‘Third Year Class University of Baghdad « ) College of Engineering Go Sept. 2009 Civil Engineering Depi. ee Time: 3 hours SS Hayder Al-Baghdady and Dr. Amer Faroug ‘Note: Not more than Four Questions to be Attempted Q.1 (25%): a. (15%) The displacement of a structure is defined by the following equation for damped oscillation (see Figure 1): y = 10e~f** cos wt where & is the damping ratio and w is natural frequency of the structure. Use the Bisection Method to estimate the time required to decrease the magnitude of y to 2 if f@ = 0.5 and w = 2. (Note: Use the interval {],Correct to three decimals and use Nmax=5)- 'b, (10%): Derive Two Points Gaussian Quadrature formula using the Method of Undetermined Coefficients: [trod mr fi +1( ff) and prove that fadax = 255 p22 ot oae Q.2 (25%): The deformation of the axially loaded member shown in Figure 2 is defined by the integral *4 NG) Ua Up » FAG Where u Axial deformation N(x) Axial force applied E(x) Young’s modulus of elasticity A(z) Cross-sectional area of member Use Four-Point Gaussian Quadrature to estimate the relative deformation of point A with respect to B if: N(x) = 10kips, L = 120 in and E(x) = 30 x 10? ksi Inwhich A(x) = (——2-x? 42x41) in? 360% +3 (Note: Correct to five decimals). Values for Gaussian Quadrature ‘Number of Points Value oft Weighting Factor w =0.86114 0.34786 4 -0,33998 0.65215, 0.33998 0.65215 0.86114 0.34786 Please Turn Over = O33 (25%): a. (10%) Solve the differential equation y' = xy, y(1) estimate f(1.4). (Note: Correct to four decimals). 1, by the Modified Euler Method with h = 0.1, to b. (15%) Apply a third-order Gregory-Newton forward interpolating polynomial to estimate f (5.00) from the following table. * a.4 (25%): Solve . yeaa where 0, x=0 ye 2 x=1 Using the Finite Difference Method. Assume Ax = h = 0.2 and correct to 3D. Q.5 (25%): Apply the Finite Difference Method to determine the deflection at the various nodes for the beam shown In Figure 3, In terms of w,L, and EI (use h = 0.2L). Solve the system obtained using Gaussian Elimination Method. Use the following Finite Difference stencils. (Note: Correct to four decimals): eaimw ‘Shear Force Diagram 216 C) (-) (+) Oj B10) $3 = ¥00) ee ee “20-0-0-O-O)"|_ x) Fourth Centr rea © @ University of Baghdad omen Memos Third Year Class College of Engineering : June 14, 2009 Civil Engineering Dept. en oe “Amer Foroug Time: 3 hours ‘Note: Not more than Four Questions to be Attempted Q.1 (25%): ‘a. (15%) Figure 1 shows a uniformly beam subjected to a linearly increasing distributed load. The equation for the resulting elastic curve is aes 4 20 Lt Y= pppgre C# + ls? - Uta) By using the Bisection Method determine the point of maximum deflection. Then determine the value of maximum deflection. Use L=6m,E =2x 10° kN/m?, |= 0.0003 m* and w=175kN/m. Express your results in inches. (Note: Correct to three 7 decimal places). Figure 1 'b. (10%) Derive the following Newton-Cotes Integration Formula, Simpson’s Rule & Rule) using the Method of Undetermined Coefficients: st2h [OP recta = Brean) + AF eo 4) + Fle + 20] (Hint: tetxy=0) Q.2 (25%): The loading acting on a beam shown in Figure 2 is represented by the formula = (—*_) 9-22/30 w(x) = (s2)e*3, (N/m) Use Four-Point Gaussian Quadrature to determine the magnitude of the resultant force. The magnitude of a distributed load can be defined as —0.86114 0.34786 a -0.33998 0.65215 0.33998 0.65215 0.86114 0.34786 (Note: Correct to five decimals). Q.3 (25%): 4, (12%) Solve the differential equation y’ = /x+y, y(0.4) = 0.41, by the Modified Euler Method with h= 0.1, to estimate /(0.8). (Note: Correct to four decimals). Please Turn Over RS @ b. (13%) The shear stress, in kips per square-foot (ksf), of nine specimens taken at various depths in a clay stratum are listed in the table below ‘Specimén No. 1 [2 3 4 “Ss 6 7 [8 9 Depth, m 93 10.0 42 34 58 19 81 69 5.1 Shear Stress, ks | 1.3257 | 1.6578 | 0.5430 | 0.6098 [ 0.7112 | 0.3345 | 1.5431 | 1.1576 | 0.8678 Determine the shear stress at a depth of 7.5 m using a third-order Newton's interpolating polynomial. (Note: Correct to four decimals). Q.4 (25%): Apply the Finite Difference Method to determine the deflections at the various nodes (use h = L/5) “for beam on elastic foundation shown in Figure 3. Then, solve the system obtained using Gaussian Elimination Method. (Note: Correct to four decimal places). ‘The differential equation describing the behavior w(x) = 2(43/L? —x/L +1) of the beam is Fixed dty Elgat ly =a@) ky Elis constant ‘Assume the followings: 510° kN/m? 0.0053 m* Figure 3 7 w= Bebra 41-1 6% - din tHal | =] O-O-O-O oO} . Bg ge Yor Mer MY Yon Yaa = Yeoa- 4-1 + 4H Yor = Yor $2 OO ——Frattous Nodes Q.5 (25%): Determine the steady-state nodal temperature of the plate shown in Figure 4, using the indicated &rid and the following constant and derivative boundary conditions: T, = 0.757 (on the top edge) T= {on the right edge) T = 150y —40x,°C (on the left and bottom edges) T = 150y - 40x The governing partial differential equation is the following Laplace Equation Figure 4 T = 150y- 40x VT = Tex + Ty , Ax =Ay=h=05m Note: Solve the system obtained using Gaussian Elimination Method. ama (Note: Correct to two decimal places). r@ @ Catege of aghacerag hg 2 an06 Cre Eaghocering Dept Groep a Tia 30 lar (Qutz No. 1:-The fection (3) sin(3) +3003) known to have a root inthe iterval[-.0, 3.5) Estimane act | | Toot using the Method pf False Position. (Note: Correct so atx decimals). Quiz No. 2: Sotve the following linear system to four decimals accuracy using Gaussian Elimination. (Note: Check the ‘accuracy of the results) : 3250x +1500y +1333 +0.767w = 13700 1.500x +2400y +2267: +1333 = 2.063 Pe +1333y 424002 +1.500~ = 1875 +1333y 41.5002 +1.800w = 1.088 ‘Quiz No. 3: Apply Newton's polynomial to find (1.0) from the following table (Note: Use Cuble Polynomial and correct to five decimal places). 7 o T z x a 3 A ‘sozaa | 0.12003 | —eaiaa7 | 1.26806 | sisi | 5001 ED 98589 —] 0.11994 | 0.06866 | 0.95505 | —-0.03300 | -0.88246 (Quiz No, 4: Evaluate f 4: _ using Three-Polnts Gaussian Quadrature Formula. (Note: Ig. € +sin(x) + | -0.746_0,0000_ 0.7746 w| 0.5555 0.8889 0.5555 nde Note: Attempt Four Questions Only 2-1 25%): Determine the moment of inertia of the arga bounded by.the triganometric, function », =sin x and the parabola: ,,= x" with respect to the y-axis using four points Gaussian Quadfature (use Table 1). The moment of inertia of the area is defined as ' = (see Figure.1) = [as where dd =hds and h= Hint: Use Newton's Method, with starting Point x, =1, to find the intersection point between the two curves. Mote: Correet to five decimal places. lues for Gaussian Quadrature. Values of 1 % =O.86t14 * 0.34786 4 =0.33998 0.65215 ss 0.33998 0.65215 ie UT Q.2 (25%): Apply a third-order Newton’ 's interpolating polyol to estimate ie and 1 Peo Table 2. (Nawe: Correct o four decimals) we he se, 2 3 (asp: Solve the differential ‘equation y (nS, 30) 02? by the Modified Eisler Method to find the valese of yat x=0.4 with /=0.1. Then, solve tho same D.E. using Fourth-Onder Runge-Kutta Method with h= 0.4 (Le. one step only).-The A's of the.4*-Ordor RK Method 4 are : heson¥) Del hes wile cue sete Ae Set ght gi) i KS, +hhy thi) ~ oe : a = Sa thy, thy) Lut + (ute: Corree} (0 four decimal places). ; . : 4 25%): Apply the Finite Difference Method to determine the deflection atthe various nodes for the beam __ shown in Figure 4, in terms of w, L, and II (use h= 0.2L). Then, Solve the system obtained using Gaussian_— Elimination Method. Use the following Firite Difference stencils. (Note: Correct to four decimals). [i eae TO aE j = 1O-O-Ol Lt [== 7" O-D-G) s1ay £2 = ew) sunt | Comat = ». #(© CHOCH-C) O)- B10) SZ = 700) | room | net : + 2OO-O-O Oj} B10) £2 = 00) | rem | cont Q.5 (25%): Derive the following formulas usi-. the Method of Unc: termined Coefficients: A. (10%): Newton-Cotes Integration ' »-mula, Simpson's R-ile ($ Rule) oy h [pee Gitene4as «4+ 46,4201 hk, — B, (15%): Two Points Gaussian Quad-‘ure Formula . [ Sd wfYP+ IGP. 1d prove that f S@)de= 5 . ‘ \ a ‘Cousot 3+ emer: cra Ee werere DERMOT ero} and 0°35 = f(a).f(b)<0 ox! 2 Sf On) ¥ef 01) S5e)- £0) Let x, sland 4,=35. 4, ea a) 1 oneee 3.601 ripe) 2572502 6.10969 z 2372302 -3,16015 7.608097 0.884394 1.609097 35 0884394. 3.16015 2.022568 0.41001 1.609097 2.022568 0.884394 0.41001 18916 0.002996 1yslé 2.022568 0.002996. -0.41001 1.99255 0.000008 _. 18916 1.89255 0.002996 -0.00000K- “1.892547 a) ‘The roct iS 12892547 because|/(x,}]=0.. opine the following linear system to four decimals accuracy using Gaussian Elimination, (Note: ‘heck the accuracy of the results). temo ' 3.250x +15009 +0.767w = 1.3700 =H ene 500% +2400y #22675 +1333w = 2.063 +1333y +2400z +1.500w = 1875 +1.333y “415007 +1.800w = 1088 c= ‘The matrix before elimination The matrix after elimination, 1333 0.767 7 15 - 133°: -0.7674- 2267 1333 16518. .: 0979. 15 Solution: S(0.0) = P,(1.0) = 0.119941+072642{1 —.12023) -0.38189{1 ~.12023\1- 1.26986) +0.09115(1-.12023X-1.26986\I - 3.58941) = 0.90573 Ans. a Ee decimals). “ee fam 0.0000 _0.7746 —

You might also like