You are on page 1of 8
TRIBHUVAN UNIVERSITY INSTITUTE OF ENGINEERING Pulchowk Campus Department of Civil Engineering Report on POWER METHOD| Course: Numerical Method SH 603 Submitted by: Submitted to: Name: Aman Karki JRS Roll no: 075BCE013 Department of civil engineering Pulchowk Campus Fatie? “EXEN | VALE AND EIGEN VECTOR BY powneR METH. | i eae | Pones method ir an Merartive methocl lo frt 4 Obrinant eigen value (one sith largest absolute value | ana 4 cones panclng ely vier. he Heratiue method! \o Plows: | Tf Ki, ---X Ore the agen vectou concespondng tp ihe eigenvalues A,Ay--- An , tren an orbitory column vector (on be written au Xe ky Xt eet ---- +¥nXn Then, 4x = Kp AX t BoA%Et - ~~ thn 4% SHAS Eat ~~ KnAntn | henilaly, aby = Ky aber t Ae + = - +t BXn | And, AX EKA Uy AyXat = - wt RndnXn . | Tp lay) >1agl--- >1An) ,then A, is [a + agen value d, | f Ar) lgl-- - al, ' oe Ag ' “he conibytion of the dem 6 at%) to the sur On ght nce luo with r anal there fore woytimeg we nouliply Qa t0tymn \vectw by 4) it become nearer to egen vector X) + Then, We Make the lorgert co onent of the relFing cole vee pete avoiol the fatto ey. rt she choye 4 Column ved X Ahich vy at ner te wlyton | | oy pourble & ovalwake Ax wAU LN after normalization, joThes give the fat approumudion Al to eigen vue and | | x" to exgen veotor. | fn the sare Hay we evaluate AXY 2 AYO” hen giver | the 3nd pro xrmodton | (= Thu proces uv repeated — vat) [x — 0) secomes | negligide- | -then, A") will be the largest enpen value and x"), be | cerespanoling etgen vecder- | | Eee as Inyut order of mabix ‘n’ and error tolerant. P- Input square matty [Alan « ind dO Od t je to net input aay next f next i 8 Tnpot me inna gden vector (Ia: fy I=0 to ned | input %U | next 7. '4.faitiqbee com sd. |S Compute: Repeat? 7 fer i20 to n-4 Zi=0 f* JF dO n-t Gat 4+ OF HAY | net j next? | oustgn; m ee Partai) 12] | fe tizo to nl if fae Zip then 7 & fess |Z) | next b fox i=d to Ord Yi s U/m ai = IDyi-xi}! nis Yi nett } auignt Stoo do) f= nu for iat te aa if di) > Saditnen PBB poe error wacced di | net 7 | Count EE Cound #4 | iP count S 50D then | pant “ewe” | cterrinate While error > tolerance 16. Pant elgen valutsm. 2. Pr jed fo Ad ee Pont egen vieter fy]. le for? ae | o 1° next | | feogrom Code: | | Pincld ¢ | | Aincludle | inelude lvprd maint lind, i,j, unt; float —afer2120, oneal, ma, 20202, yl20I, ted) , erty, toleranee i nnbf U Enter the ovler of mare anol dgleable envdr\o"); sont "no ef 1, An, tolerance), , pratflEnter the elements of mathe in"); fe Uro; lesa let , Yeo, Jeenel; jtot / sant Caf? 4QLiwjyi I i inn f U' Enter the tortral gues victo\n"); We jeenayitelt Ord " ade FO cong Uf RMD unt = 0; | doy forlco; i fe =o) Fear; peo f 2D =z) + AMILYIXAGL 3 me fabs (200); forliea; jena; ito af (paws (217.9%) f raz far (2011); 3 for Lie jesnet: ten | yOd=wwi/y dei = fabs {fas YD — fas OD) ; ; ats yo; errors Abb}: fAHoBY Atel; forlicd; zat; ite) ig (passtans ended t erro = fab tae acid, 3 J count Ft; if Ceount> SOIT pant ( " Eyer! ! Gan; vetuin: e Cenror >= dled} tap enany iterations ey rohl rani logut eigen vale ie Up", pent f U" Corvespoociing elgen veoto \n fm U=0; Verne) eat poarfl" zy \n") ytd); 4g GUA; return: 5 to find ee MAM MYm the ean vectas and — compann dd) We | value & trot tnd the nad to PIMDINOK) ano CONUWION! Ln tws Practral, ne largest agen volue eigen vector Of & matte by poner method. During the exeosthon of program , prblen ray avng While computing 4 ort a C program and orres; on alg diffuence a beUwun Ane conscovtrve igen i th Alerakle eror. While dary take abate dyfecnc abaflute op (onuccutve —esgen veeron, awe (berddtivé cored

You might also like