Numerical Analysis Third Class Chemical Engineering Department University of Technology Assoc. Prof. Dr. Zaidoon Mohsin shakor
|
|
- Maude Parker
- 5 years ago
- Views:
Transcription
1 Numercl Alss Thrd Clss Chemcl Egeerg Deprtmet Uverst o Techolog Assoc. Pro. Dr. Zdoo Mohs shkor
2 Itroducto to Numercl Alss U. Alss versus Numercl Alss The word lss mthemtcs usull mes who to solve problem through equtos. The solvg procedures m clude lgebr, clculus, deretl equtos, or the lke. Numercl lss s smlr tht problems solved, but the ol procedures tht re used re rthmetc: dd, subtrct, multpl, dvde d compre. Dereces betwee ltcl solutos d umercl solutos: A ltcl soluto s usull gve terms o mthemtcl uctos. The behvor d propertes o the ucto re ote ppret. However, umercl soluto s lws ppromto. It c be plotted to show some o the behvor o the soluto. A ltcl soluto s ot lws megul b tsel. Emple: s oe o the roots o. Whle the umercl soluto s ppromto, t c usull be evluted s ccurte s we eed. Actull, evlutg ltc soluto umercll s subject to the sme errors. U. Computers d Numercl Alss Numercl MethodsProgrms Computers Numercl Alss As ou wll ler eough bout m umercl methods, ou wll be ble to wrte progrms to mplemet them. Progrms c be wrtte computer lguge. I ths course ll progrms wll be wrtte Mtlb evromet. Actull, wrtg progrms s ot lws ecessr. Numercl lss s so mportt tht etesve commercl sotwre pckges re vlble. Numercl Alss/Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
3 U. Tpes o Equtos The equtos s dvded to three m ctegores such s below gure:- U. Kds o Errors Numercl Procedures The totl error comprses o: UModel ErrorU: due to the msmtch betwee the phscl stuto d the mthemtcl model. UDt ErrorU: due to the mesuremets o doubtul ccurc. UHum ErrorU: due to hum bluders. U Propgted ErrorU: the error the succeedg steps o process due to occurrece o erler error. 5 UTructo ErrorU: the oto o tructo error usull reers to errors troduced whe more complcted mthemtcl epresso s replced wth more elemetr ormul. Ths ormul tsel m ol be ppromted to the true vlues, thus would ot produce ect swers. Numercl Alss/Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
4 Emple.: Tructo o te seres to te seres to te umber o terms leds to the tructo error. For emple, the Tlor seres o epoetl ucto e...!!! I ol our terms o the seres re used, the e!! e !! The tructo error would be the uused terms o the Tlor seres, whch the re E t 5 5! 5!! 5!.565 Check ew Tlor seres ppromtos o the umber e, or,, d. Gve tht e.788. Order o Appromto Percet reltve Absolute error or e error % % % 6 URoud-O ErrorU: AT T TroudT-To errort, lso clledt T Troudg errort, s the derece betwee the clculted ppromto o umber d ts ect mthemtcl vluet TdueT Tto roudg Emple.: Numbers such s π, e, or cot be epressed b ed umber o decml plces. Thereore the cot be represeted ectl b the computer. Cosder the umber π. It s rrtol,.e. t hs tel m dgts ter the perod: π The roud-o error computer represetto o the umber π depeds o how m dgts re let out. Numercl Alss/Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
5 Let the true vlue or π s.59. Number o dgts Appromto Percet reltve Absolute error Decml dgt or π error..59.9% %..7.% U.5 Errors Numercl Procedures There re two commo ws to epress the sze o the error computed result: bsolute error d reltve error. Absolute error true vlue ppromte vlue, whch s usull used whe the mgtude o the true vlue s smll. true vlue - ppromte vlue Reltve error, whch s desrble oe. true vlue Whle true vlue ppromte vlue Percet reltve error, ε t % true vlue Numercl Alss/Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
6 Soluto o Frst-Order Ordr Deretl Equtos A equto tht cossts o dervtves s clled deretl equto. Deretl equtos hve pplctos ll res o scece d egeerg. Mthemtcl ormulto o most o the phscl d egeerg problems led to deretl equtos. So, t s mportt or egeers d scetsts to kow how to set up deretl equtos d solve them. Deretl equtos re o two tpes Ordr deretl equto ODE. Prtl deretl equtos PDE. A ordr deretl equto s tht whch ll the dervtves re wth respect to sgle depedet vrble. Emples o ordr deretl equto clude: d,, d d d d,, d d d d d d d 5 s d d d d s, d, d, Frst order ordr deretl equtos re o the orm: d t, wth dt O the let hd sde s the dervtve o the depedet vrble wth respect to the depedet vrble t. O the rght hd sde, there s ucto tht m deped o both d t. M deretl equtos cot be solved ectl. Numercl methods hve bee developed to ppromte solutos. Numercl lss s eld mthemtcs tht s cocered wth developg ppromte umercl methods d ssessg ther ccurc, or stce or solvg deretl equtos. We wll dscuss the most bsc method such Tlor, Euler d Ruge-Kutt methods. U. Tlor Seres Method Fucto c be epded over smll tervl usg the Tlor seres rom strt or reerece pot h h h h h!!! Where h h, costt. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
7 P P P Emple. Solve the ollowg ordr deretl equto ODE usg Tlor s method o order wth h. d d P Soluto d d R R RR, or, wth.5 d P P d RR RRP h RR RRP RR hp U.. Euler s Method Euler s method s the smplest d lest useul o these three methods. I we re solvg rst-order deretl equto o the orm d dt t, wth the tl codto A, Euler s method begs b ppromtg the rst dervtve s d dt t t t t Settg ths equl to t, d solvg or t t elds the ollowg lgorthm or dvcg the umercl soluto o ordr deretl equto: d d, h, Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
8 Usg Euler s method we hve the ollowg cosderto: h h h h h, h,, Eercse.: Appl Euler s method to ppromte the soluto o the tl vlue problem d d wth 5 Soluto We kow tht the ltcl soluto o equto s, 5ep. We umercll solve equto usg Euler s method wth h. the tme tervl [,.5], d the check how well ths method perorms. We hve. The 5 Ad 5 5 h.. h... h... h... h...5 h h h h h h We summrze ths the ollowg tble. I h., the Ect Derece Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
9 The thrd colum cots the ect vlues, 5ep. The lst colum cots the bsolute error ter ech step, computed s -REctR. We see tht whe h., the umercl ppromto s ot ver good ter ve steps. I we repet the sme ppromto wth smller vlue or h, s h., the ollowg tble results or the rst ve steps: Ect Derece Dog ve steps ol gets us to.5. We c do more steps utl we rech.5. We d tht the l pot wll be: Ect Derece Choosg smller vlue or h resulted better ppromto t.5 but lso requred more steps. Oe source o error the ppromto comes rom the ppromto tsel.. Fourth order Ruge-Kutt Method To d umercl soluto to the tl vlue problem,, usg Ruge-Kutt method we hve the ollowg cosderto: k k k k h 6 k, k k h, kh h, kh h k h k, Ths method gves more ccurte result compred to Euler s method Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor d d
10 Emple.: Solve the ollowg ordr deretl equto ODE usg ourth order Ruge-Kutt method to clculte. d ;, h. d Soluto: krr krr.5.5. krr krr h o k k k k krr... krr krr krr t..8 Emple.: A bll t K s llowed to cool dow r t mbet temperture o K. Assumg het s lost ol due to rdto, the deretl equto or the temperture o the bll s gve b dt.67 T 8 8, T K dt where T s K d t secods. Fd the temperture t t 8 secods usg Ruge-Kutt th order method. Assume step sze o h secods. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
11 Soluto dt.67 dt 8 T 8 8 t,t.67 T 8 h T T 6 k k k k For, t, T K k t,, T t h,t k h,.5579 k 8, t h,t k h,.87 k 8, t h,t k h,.89,65. k h T T k k k k K.6975 T s the ppromte temperture t ttr t t h For, t,t K k t,, T t h,t k h, k 8 6, Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
12 .7 t h,t k h, ,68. k t h,t k h, ,59.9 k h T T k k k k K T s the ppromte temperture t tme tr t h 8 t Tble d Fgure show the eect o step sze o the vlue o the clculted temperture t t 8 secods. Tble Vlue o temperture t tme, t 8s or deret step szes Step sze, h T8 E t ε t % Emple.5 Usg Mtlb Commds solve the ollowg equto usg both Eulr d Ruge-Kutt method d to ppromte the soluto o the tl vlue problem d d, Soluto: wth step sze h.. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
13 Eulr cler ll, clc,ormt short ; ; h.5 or :5 h; d; h*d; ed _ect --*ep; error_ect- tble[',',_ect',error'] tble Ruge Kutt cler ll, clc,ormt short ;;h.; le''; %, or :5 h; k,; k h/,k*h/; k h/,k*h/; k h,k*h; /6*h*k *k *k k; ed _ect --*ep; error_ect- tble[',',_ect',error'] tble Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
14 Solvg Smulteous Frst-Order Ordr Deretl Equtos. Itegrto two smulteous rst-order ordr deretl equtos Cosder the ollowg sstem o rst-order ODE s descrbg the depedece o two depedet vrbles d z o oe depedet vrble : d,, z d dz g,, z d These two deretl equtos re coupled d must be tegrted smulteousl becuse both equtos volve both depedet vrbles. Itl codtos re requred gvg the vlues o d z t the tl vlue o. The lgorthm or th-order Ruge-Kutt tegrto o two coupled ODEs s: z k k k k k k k k h k 6 h z k 6 k k k k k k,,z g,,z.5h,.5hk,z.5hk g.5h,.5hk,z.5hk.5h,.5hk,z.5hk g.5h,.5hk,z.5hk h, hk,z hk g h, hk,z hk As emple eothermc recto usted-stte cotuous strred tk rector d eothermc recto plug low rector wth het echge through the rector wll. From the oe d two ODE emples, ou c eted the method to tegrto o three coupled ODE s. Three coupled ODE s would be ecoutered, or emple, or recto o gses sted-stte o-sotherml plug low rector wth sgct pressure drop dc/d, dt/d, d dp/d. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
15 . Itegrto o sstem o rst-order ordr deretl equtos d,,,, d d,,,, d dm d m,,,, m The soluto o the bove equtos s: m m h k 6, k, k, k, Where,,..., m d k,, m,, k k h, hk hk,,,,, m h, hk hk,,,,, m k, h, hk,, hk,, m hk hk,m hk,m, m The de o the soluto to sstem o deretl equtos s smlr to soluto o sgle deretl equto. Emple.: Usg ourth order Ruge-Kutt method wth step sze h. solve d, d d d, - To clculte. d. Soluto At,, - k, - - k, - k,.5hk,.5hk,.5h Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
16 k,.5h.5hk,.5hk, k,.5hk,.5hk,.5h k,.5h.5hk,.5hk, k, hk, hk, h k, h hk, hk, t.. h/6k, k, k, k,../6 [ ].99. h/6 k, k, k, k,. - [ ] -.99 Emple. Use ode5 Mtlb Commd to solve the ollowg rst order sstem or d. t d, d d d, - Usg ourth order Ruge-Kutt method wth step sze h. Soluto The Mtlb routes ode5 c be used to solve the sstem. A Mtlb ucto must be creted to evlute the slopes s colum vector. The ucto me ths emple s eode, whch must be sved rst the hrd drve wth the sme me eode.m. ucto dd eode, dd,*; dd,*; The commd ode5 s the evluted rom the commd wdows. Mtlb wll set the step sze to cheve preset ccurc tht c be chged b user. The depedet vrble c lso be speced t cert loctos betwee the tl d l vlues d Mtlb wll provde the depedet vlue t these loctos. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
17 sp:.:; [,]ode5'eode',sp,[, -] Eercse.: Let s cosder smple emple o model o plug low rector tht s descrbed b sstem o ordr deretl equtos. A plug low rector s operted s show Fgure 9. below. A k B k C Fgure 9. Isotherml plug low rector The plug low tll hs ol rectt A, the compoets A rect to orm compoet B. The mole blce or ech compoet s gve b the ollowg deretl equtos dca u kca dz dcb u kca k CB dz dcc u k CB dz Wth the ollowg tl vlues C A z kmol/m C B z C C z d k k Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
18 I u.5 m/s d rector legth z m. Solve the deretl equtos d plot the cocetrto o ech speces log the rector legth Soluto: We ll strt b wrtg the ucto deg the rght hd sde RHS o the ODEs. The ollowg ucto le emple s used to set up the ode solver. ucto dc Emple z, C u.5; k; k; dc, -k *C / u; dc, k *C-k *C / u; dc, k *C/ u; Now we ll wrte m scrpt le to cll ode5. CA, CB d CC must be deed wth the sme mtr, d so b cllg CA s C, CB s C d CC s c, the re lsted s commo to mtr C. The ollowg ru le s creted to obt the soluto: cler ll, clc [z, C] ode5' Emple', [:.:], [ ] plot z,c:,,'k-',z,c:,,'k*:',z,c:,,'kd-.' lbel 'Legth m'; lbel 'Cocetrtos kmol/m^ '; leged 'A', 'B', 'C' The produced plot s s Fgure 9. Cocetrtos kmol/m A B C Legth m Fgure 9.: A, B d C cocetrtos log plug low rector Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
19 . Solvg Hgher Order Ordr Deretl Equtos We hve lered Euler s d Ruge-Kutt methods to solve rst order ordr deretl equtos o the orm d d,, Wht do we do to solve deretl equtos tht re hgher th rst order? For th emple order deretl equto o the orm d d d o d d d wth tl codtos c be solved b ssumg z d dz z d d d dz z d d d dz d d d dz d d z d d d d z z z The bove Equtos rom to represet rst order deretl equtos s ollows dz z d dz d dz d z z z,,, z z,,, z z z Ech o the rst order ordr deretl equtos s ccomped b oe tl codto. These rst order ordr deretl equtos re smulteous ture but c be solved b the methods used or solvg rst order ordr deretl equtos tht we hve lred lered. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
20 Hgher Order Ordr Deretl Equtos d d e s d d wth d -.,. 6 d d d d d d wth d, d d,, d d d d wth d d d.5, d, d.5, d d d, Sstem o rst Order Ordr Deretl Equtos d z,. d dz d e s z, z. 6 d z, d dz u, z d du u z, u d d z, d dz u, z d du v, u. 5 d dv z, v. 5 d Emple. Re-wrte the ollowg deretl equto s set o rst order deretl equtos. d d 5 e d d, 5, 7 Soluto The ordr deretl equto would be rewrtte s ollows. Assume d z, The d dz d d d Substtutg ths the gve secod order ordr deretl equto gves dz z 5 e d dz e z 5 d The set o two smulteous rst order ordr deretl equtos complete wth the tl codtos the s Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
21 d d 5 z, e z 5, z 7 dz d. Now oe c ppl o the umercl methods used or solvg rst order ordr deretl equtos. Emple.5 Gve the thrd-order ordr deretl equto d ssocted tl codtos d d d d d d 5,, d.6, d d d.. Wrte ths deretl equto s sstem o rst-order ordr deretl equtos b. Usg ourth order Ruge-Kut method to estmte. d. tkg Δ. d z, d dz u, z. 6 d du u 5z, u. d b Soluto Frst step o tegrto,, z.6, u., Δ. k z.6 k u. k- u-5 z kz.5 Δ k ku.5 Δ k k.5 Δ - u.5 Δ k-5 z.5 Δ k-.5 Δ k kz.5 Δ k ku.5 Δ k k.5 Δ - u.5 Δ k-5 z.5 Δ k-.5 Δ k Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
22 kzδ k kuδ k kδ - uδ k-5 zδ k-δ k Δ.. Δ/6 k k kk./ zzδ/6*k*k*kk.6./ uuδ/6*k*k*kku./ d dz d The t.,.599, z.587, u -.7 d d d Secod step o tegrto., z.587, u-.7, Δ. k z.587 k u -.7 k- u-5 z kz.5 Δ k ku.5 Δ k k.5 Δ- u.5 Δ k-5 z.5 Δ k-.5 Δ k kz.5 Δ k ku.5 Δ k k.5 Δ - u.5 Δ k-5 z.5 Δ k-.5 Δ k kzδ k kuδ k kδ- uδ k-5 zδ k-δ k Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
23 Δ... Δ/6 k k kk.599./ zzδ/6*k*k*kk.587./ uuδ/6*k*k*kk -.7./ d dz d The t.,.55, z.575, u d d d Soluto Usg Mtlb: We ll strt b wrtg the ucto deg the rght hd sde RHS o the ODEs. The ollowg ucto le E s used to set up the ode solver. ucto dq E,q q;zq;uq; dq,z; dq,u; dq,^-*u-5*z-; The ollowg ru le s creted to obt the soluto: cler ll,clc,ormt compct [,q]ode5'e',[:.:.],[,.6,.] q:, The produced results wll be.. q Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
24 P Iterpolto d Appromto Wht s terpolto? M tmes, dt s gve ol t dscrete pots such s RR, RR, RR, RR,. RR, RR, RR, RR. So, how the does oe d the vlue o t other vlue o? Well, cotuous ucto m be used to represet the dt vlues wth pssg through the pot Fgure.. The we c d the vlue o t other vlue o. Ths s clled terpolto. O course, lls outsde the rge o or whch the dt s gve, t s o loger terpolto, but sted, s clled etrpolto.,,,, Fgure. Iterpolto o dscrete dt For dt pots, there s oe d ol oe poloml o order tht psses through ll the pots. For emple, there s ol oe strght le tht s, rst-order poloml tht coects two pots. Smlrl, ol oe prbol coects set o three pots. Poloml Iterpolto cossts o determg the uque P th order poloml tht ts dt pots. Ths poloml the provdes ormul to compute termedte vlues. Oe o the methods used to d ths poloml s clled the Lgrge method o terpolto. Other methods clude Newto s dvded derece poloml method d the drect method. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
25 RR 9. 9.RR 9.RR. Lgrge Iterpoltg Poloml Cosder ucto tht psses through the two dstct pots RR, RR d RR, RR s show Fgure.. The rst order poloml tht ppromtes the ucto betwee these two pots c be epressed s b Where d b re costts. c lso be wrtte Lgrg orm s crr RR crr RR Fgure. Frst d secod order poloml ppromto. I. Ler B weghtg the verge o the two vlues used to produce the coordtes o the le the ormul: L L where: L L Emple. Compute -decml plce vlue o l 9. rom l 9..97, l b ler Lgrge terpolto d determe the error, usg the ect vlue o l Soluto: 9., RR 9.5, RR l 9..97, RR l ; hece we get 9.5 L. 9.5,.5 9. L. 9.,.5 l 9. prr LRR LRR L L 9... The bsolute error s Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
26 II. Qudrtc B weghtg the verge o the three pots tht produce the prbol we c derve the ormul: L L L where: L L L Emple. Compute l 9. rom the dt the prevous emple. d the ddtol thrd vlue l Soluto: 9.5. L L L L 9..5 L 9..8 L 9.. l 9. prr The bsolute error s III. Geerl Lgrge Iterpoltg Poloml I geerl, the Lgrge poloml c be represeted s: L where L j j Emple. Fd the Lgrge terpolto poloml tht tkes the vlues prescrbed below Rk RkR 5 Soluto PRR L, k RkR PRR k 5 j j Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
27 P Whe workg wth grds hvg lrge umbers o tervls oe tpcll ssgs set o low degree,, or bss uctos to ech djcet set o,, or odes. Emple. The ollowg tble gves the vlue o dest o sturted wter or vrous tempertures o sturted strem. o Temp P PC T 5 5 Dest kg/mp d Use thrd order Lgrge terpoltg polomls to correlte dest s ucto o temperture. o Fd the destes whe the tempertures re P PC. Soluto T 5T T L -. T T 5 5 T T T L T -. T.8T T T 5T L - T T -.T T T 5T -6 - L. T 6 T L L L L - T - T -.566T T Emple.5 Use Lgrge globl terpolto b oe poloml d pecewse poloml terpolto wth qudrtc or the ollowg odes. Rk 5 RkR Soluto Globl terpolto b oe poloml: P L, k RkR PRR Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor k
28 Pecewse poloml terpolto wth qudrtc PRR PRR ; ; 5. Newto Dvded Derece Iterpoltg The Lgrg terpolto polomls re useul dscussos o umercl tegrto. A ltertve terpolto s Newto s Dvded Derece Iterpolto. It volves ewer rthmetcl opertos. Aother dvtge o Newto s rests wth the ollowg scero. Suppose we eed to mprove the ccurc d crese the umber o grd pots. From the orms o Lgrge terpolto polomls, ll the terms hve to be evluted oce g, d ths s huge mout o work the umber o pots s lrge. Newto s does ot suer rom ths drwbck, d just oe ddtol term eeds to be computed. I. Ler Iterpolto Cosder the dgrm below whch curve s modeled poorl b : Usg smlr trgles the slopes re the sme d hece: Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
29 to d d we c Ad thus the coordte o the curve t RR bove to become: be ppromted b rerrgg the Emple.6 Estmte the commo logrthm o usg ler Newto s terpolto. Iterpolte betwee log 8.99 d log.798. b Iterpolte betwee log d log.97. For ech o the terpoltos, compute the percet reltve error bsed o the true vlue. USoluto ε t %.886% b ε t %.8% II. Qudrtc Iterpolto To reduce the error, qudrtc terpolto tht troduces some curvture to the terpolto s used. The orm: Let RR Let RR b b b produce: b use the prevous dett to produce: b Ad g b substtuto o brr b brr Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor derve tht: b b b
30 RR RR RR brr Emple.7 Ft secod-order Newto s Iterpoltg poloml to estmte log usg the dt rom Emple.7 t 8, 9, d. Compute the true percet reltve error. Soluto Frst, order the pots b b 9 RR.955 RR.97 8 RR Substtutg these vlues elds the qudrtc ormul whch c be evluted t or ε t. %.% III. Geerl orm o Newto Dvded Derece Iterpoltg Poloml I geerl, we d the te dereces deed s: j [, j] [, [, j] [ j, k ] [, j, k ] [,,..., ] j k,..., ] [,,..., The the geerl Newto Iterpoltg Poloml o order wth dt pots s deed s: ] b b b... b... Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
31 P C P P P Where b b b b [ [ [, ],,, ],..., ] b b [, ] b [,, ] b [, ] [,,, ] [,, ] [, ] For emple o thrd order poloml, gve,,,,,, d,, [ ] [ [,, ],, [ ],, ] Emple.8 The ollowg tble gves the vlue o dest o sturted wter or vrous tempertures o sturted strem. o TempP T : 5 5 Dest kg/mp P d : Usg Newto dvded derece terpoltg d the destes whe the tempertures re o o P PC d 75P PC respectvel. Soluto T D [RR,RR] [RR,RR,RR] [RR,RR,RR,RR] [RR,RR,RR,RR,RR] P P P Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
32 P P T - -. T -*T T -*T -5*T - *T T -*T -5*T - P T -.5T.667 T T P kg/m P kg/m Or b drect substtuto P kg/m P P P P P kg/mp P P P P kg/mp -6-6 Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
33 SRrR s d re Curve Fttg Wht s regresso? Regresso lss gves ormto o the reltoshp betwee respose vrble d oe or more depedet vrbles to the etet tht ormto s coted the dt. The gol o regresso lss s to epress the respose vrble s ucto o the predctor vrbles. Oce regresso lss reltoshp s obted, t c be used to predct vlues o the respose vrble, det vrbles tht most ect respose, or ver hpotheszed csul models o the respose.. Ler regresso Ler regresso s the most populr regresso model. I ths model we wsh to predct respose to dt pots RR,RR, RR,RR,..., RR, RR dt b regresso model gve b. Where RR RR the costts o the regresso model. A mesure o goodess o t, tht s, how predcts the respose vrble s the mgtude o the resdul, ε t ech o the dt pots. ε Idell, ll the resduls ε re zero, oe m hve oud equto whch ll the pots le o the model. Thus, mmzto o the resdul s objectve o obtg regresso coecets. The most populr method to mmze the resdul s the lest squres method, where the estmtes o the costts o the models re chose such tht the sum o the squred resduls s mmzed, tht s mmzeε. Let us use the lest squres crtero where we mmze S ε r clled the sum o the squre o the resduls. Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
34 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor Fgure. Ler regresso o vs. dt showg resduls t tpcl pot, RR. To d RR d RR, we mmze SRrR wth respect to RR d RR: r S r S Gvg Notg tht..... Solvg the bove equtos gves: Or rom equto.,,,,, ε
35 o Emple. The ollowg vs. dt s gve vs Fgure. Dt pots o the vs dt Although s ect t to the dt, scetst thks tht c epl the dt. Fd costts o the model,, d, Soluto Frst d the costts o the ssumed model Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
36 RR d c P TRR DR Ths gves P UEmple. The ollowg tble gves the vlue o dest o sturted wter or vrous tempertures o sturted strem. o Temp PC T 5 5 Dest kg/mp D Use curve ttg to t the results to rst-order poloml D A BT. b Fd the destes whe the tempertures re P PC d 75P PC respectvel. USoluto: RR be computed b costructg the ollowg tble: TRRP TR DR D9.-. T Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor o o
37 P To compre the predcted vlues to the epermetl vlues: TR DR DRRestmted D9.-. T D D Poloml Models Gve N dt pots RR, RR, RR, RR.., RNR, RNR use lest squres method to regress th the dt to P order poloml. I the developmet, we use s the degree o the poloml d N s the umber o dt prs,. We wll lws hve N > the ollowg. Assume the uctol reltoshp or ttg Y wth errors deed b e Y, whch,,,, N. We mmze the sum o error squres, N N. S e At the mmum, ll the rst prtl dervtves wth respect to S N N S N S,,, S N, Rerrge them to get N N N N N, s vsh. We hve Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
38 N N N N N, N N N N N, N N N N N, or, mtr orm, N N N N N N N N N N N N N N N N N N N N.. Equtos. represet ler sstem. However, ths sstem s usull ll-codtoed d roud-o errors c dstort the soluto o s. Up to degree- or, the problem s ot too gret. It s ver requet to use degree hgher th. Emple. Rotmeter clbrto dt low rte versus Rotmeter redg re s ollows: Rotmeter Redg R Flow rte VL/m Usg curve ttg to t the clbrto dt to secod order poloml. b Clculte the lowrte V t rotmeter redg R7. Soluto: d P P order poloml S r ds d r o ds d r ds d r ε o o o o Re rrgg bove equtos Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
39 RP RP RP o o o Mkg requred tble R V RP RV P B substtuto equto 5 o o o Solvg bove equto smulteousl gves; o.8786,.598,.857 P the V B R.857 V R Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
40 . Noler Dt Wheever dt rom epermetl tests re ot ler, we eed to t to them some ucto other th rst-degree poloml. Populr orms tht re tred re the power orm b or the epoetl orm b e. Sce such oler equtos re much more dcult to solve th ler equtos, the re usull lerzed b tkg logrthms beore determg the prmeters: l l bl, or l l b. ler o-ler Fgure. Ler vs o-ler dt I cses whe such lerzto o the ucto s ot desrble, or whe o method o lerzto c be dscovered, grphcl methods re requetl used; oe merel plots the epermetl vlues d sketches curve tht seems to t well. Emple. The progress o homogeeous chemcl recto s ollowed d t s desred to evlute the rte costt d the order o the recto. The rte lw epresso or the recto s kow to ollow the power ucto orm r kc Use the dt provded the tble to obt d k. C A gmol/l r A gmol/l s Soluto Tkg the turl log o both sdes o Equto, we obt r l k l C l Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
41 Let z l r w l C l k mplg tht k e We get z w Ths s ler relto betwee z d w, where w z w w w z z Tble: Ketcs rte lw usg power ucto 7 7 w 7 z 7 7 w C r w z w z w z w.998 From bove equtos w Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
42 The 7 k e Fll, the model o progress o tht chemcl recto s r.78 C.9 Emple.5 It s suspected rom theoretcl cosdertos tht the rte o wter low rom rehouse s proportol to some power o the ozzle pressure. Assume pressure dt s more ccurte. You re trsormg the dt. Flow rte, F gllos/m Pressure, p ps b Wht s the epoet b o the ozzle pressure the regresso model F p Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
43 Soluto The lerzto o the bove dt s doe s ollows. Where b F p l F l b l p z z l b F l p Implg l e There s ler reltoshp betwee z d. Ler regresso costts re gve b b Sce z z the z z z l55 l5 z l l96 l7 l9 l l5 l5 l5 l l68 l l l l7 l l5 l l55 9. l96 l9 l5 l5 l68 l l b l5 l l Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
44 Emple.6 The ollowg dt hve bee obted or the decomposto o bezee dzoum chlorde to chlorobezee: T K k sp P From ths dt, determe the pre-epoetl ctor A d ctvto eerg E, ssumg tht the rte costt ollows Arrheus orm. E k Aep RT Soluto: l k l A l k /T l A o E R We get o E RT T K - k sp P /T l k P e e e e e e o.7 o l A.7 A ep.7 8. E / R E R Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
45 A Mtlb progrm or solvg emple.6 s lsted Tble.. Tble. Mtlb code d results or soluto emple.6 Mtlb T[,9,,8,]; Code K[.,.,.8,.55,.77]; Results E./T; logk; Polpolt,,; E-Pol*8. AoepPol.8e5 Ao 8.e7 The comprso betwee epermetl d predcted k vlues s show below gure: Recto rte costt k k Ep. k Pred Temperture K Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
46 Numercl Itegrto Numercl Itegrto Appromto. Itegrto s the process o mesurg the re uder ucto plotted o grph. Sometmes, the evluto o epressos volvg these tegrls c become dutg, ot determte. For ths reso, wde vret o umercl methods hve bee developed to d the tegrl. Here we dscuss s deret methods or ppromtg the vlue o dete tegrl. Ech method revolves roud ssoctg dete tegrl wth re uder curve. The rst three use res o rectgles, the ourth uses res o trpezods, d the l ppromto techque uses res o shpes tht clude porto o prbol.. Let-Edpot Appromto O ech o the our subtervls show below, we crete rectgle whose wdth s the legth o the subdvso d whose heght s determed b the ucto vlue t the let edpot o ech subdvso. wdth:, heght: wdth:, heght: / e wdth:, heght: / wdth:, heght: / The sum o the res o the our rectgles represets our ppromto or the re uder the curve d thereore represets ppromto or the vlue o the dete tegrl: Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
47 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor d e Ths sme sequece o steps c be geerlzed or let-edpot ppromto o the dete tegrl d b usg subdvsos: b d. Rght-Edpot Appromto Ag we crete rectgles whose wdths re ech the legth o subdvso, but here ech heght s determed b the ucto vlue t the rght edpot o ech subtervl. The sum o the res o these our rectgles represets rght-edpot ppromto or the re uder the curve d thereore s ppromto or the vlue o the dete tegrl: wdth:, heght: e wdth:, heght: / wdth:, heght: / wdth:, heght: /
48 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor d e Ths sme sequece o steps c be geerlzed or rght-edpot ppromto o the dete tegrl b d usg subdvsos: b d. Mdpot Appromto For thrd tme we crete rectgles ech o whose wdth s the legth o the subdvso, but ow ech heght s determed b the ucto vlue t the mdpot o ech subdvso. The sum o the res o these our rectgles represets mdpot ppromto or the re uder the curve d thereore s other ppromto or the vlue o the dete tegrl: wdth:, heght: / 7 / 8 e wdth:, heght: / / 8 wdth:, heght: / / 8 wdth:, heght: / 5 / 8
49 Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor d e Ths sme sequece o steps c be geerlzed or mdpot ppromto o the dete tegrl b d usg subdvsos: b d. Trpezodl Rule Trpezodl rule s bsed o the Newto-Cotes ormul tht oe ppromtes the tegrd b P th P order poloml, the the tegrl o the ucto s ppromted b the tegrl o tht P th P order poloml. Itegrtg polomls s smple d s bsed o the clculus ormul. The heght o ech trpezod s the legth o the subdvso. The two bses o ech trpezod correspod to the vlues o the ucto t the edpots o the subtervl o whch the trpezod hs bee drw. heght:, bses: / d e heght:, bses: d / heght:, bses: / d / heght:, bses: / d /
50 Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor It m be useul to remove the rst o these trpezods d rotte t to more covetol oretto s we clculte ts re. The sum o the res o these our trpezods represets ppromto or the re uder the curve d thereore s oe more ppromto or the vlue o the dete tegrl: d e Ths sme sequece o steps c be geerlzed or trpezod ppromto o the dete tegrl d b usg subdvsos: b d Sgle Segmet Trpezodl Rule b d Multple Segmets Trpezodl Rule b d heght: bse legth: bse legth: / Are / /
51 Emple. Evlute the tegrl I b trpezodl rule dvdg the tervl [, ] to ve equl prts. Soluto 5 5 / d From Trpezodl Rule; I [ 5 6]. [ ].886 Emple. Use Multple-segmet Trpezodl Rule to d the re uder the curve rom to. e Soluto Usg two segmets, we get 5 e e.6 e 5 Are [ 5 ] [.9.6] Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
52 TP CRpR PTP P P TP P P e So wht s the true vlue o ths tegrl? d Mkg the reltve true error % t 79.56% 6.59 Tble: Vlues obted usg Multple-segmet Trpezodl Rule or Appromte Vlue E t d e % % % % % % % t Emple. The verge vlues o ucto c be determed b:- Cp mh T T CpdT T T CRpR P - PT9.75 P P -.95 P KJ/Kg K Use ths reltoshp to vert the verge vlue o specc het o dr r the rge rom K to 5 K: Altcll Numercll usg ve pots Trpezodl Rule Soluto Cp mh T T T.95 - T dt - Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
53 Cp mh Cp mh T T T T T T 5 5 T Cp Cp mh dt/ *Cp *Cp Cp Cp Cp5 T T 7.5/*.89 * AltclSoluto - Numercl Soluto Reltve Error % % % % AltclSoluto.67.5 Smpso s Rule / Smpso s Rule The l ppromto techque we develop ths secto s clled Smpso s Rule. It s deret rom the rst our methods becuse we re ot cretg polgos o ech subtervl but rther we crete gure wth o-strght compoet to t. For ths method, t s requred tht the umber o subtervls be eve umber. A prbol s creted tht cots the pots,,,, d,. e Aother prbol s creted tht cots the pots,, Numercl Alss /Lec. - - Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
54 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor Smpso s Rule uses prs o subdvsos d cretes over ech pr prbol tht cots the pots R-R, R-R, R-R, R-R, d RR, RR or gog rom to P P/RR. A shpe s creted usg the resultg prbol, two vertcl segmets oe rom R-R, to R R, R-R d oe rom RR, to R R, RR d the segmet o the -s wth edpots R-R, d RR,. The re o the resultg shpe such s o the red-shded gure bove or the gree-shded gure bove-s clculted usg the ormul. The sum o the res o these shpes represets ppromto or the re uder the curve d thereore s ppromto or the vlue o the dete tegrl: d e Ths sme sequece o steps c be geerlzed or the Smpso s Rule ppromto o the dete tegrl d b usg subdvsos: b d
55 P Sgle Segmet / Smpso s Rule b d Multple Segmet / Smpso s Rule b d Emple. Evlute the tegrl.8 d I b / Smpso s rule dvdg the tervl [,.8] to equl sub-tervls. Soluto From Smpso s /P.8 rd Rule I d [ ] [ [ ]. [. [ ] ].689 ].6 Smpso s Rule /8 Smpso s Rule Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
56 P I we coect the pots o the curve usg P uder the curve c be ppromted b the ollowg ormul: b d [ rd order Lgrge poloml, the re ] 5 Sgle Segmet /8 Smpso s Rule b d [ ] 8 Multple Segmet /8 Smpso s Rule b d 8 Emple.5 Evlute the tegrl o the ollowg tbulr dt wth The trpezodl rule. b Smpso s rules F USoluto Trpezodl rule 5:. I [ ].5 b Smpso s rules 5:. I [ 8 ]. [.5 5 ] Emple.6 The volume o s gve b ollowg epresso: V F CA A o.9 d A k A 7 wth k.7 ep 65/ T m d T 9A 5 usg.5.75 A - F A 5mol/m, CA.5 mol LP Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
57 Clculte the volume o the rector usg Smpsos rule wth ve pots steps. Soluto X T k k A V 5 /.5*.5 / *. *7.6 *.95 * L A Mtlb progrm or solvg emple.5 s lsted Tble.. Tble. Mtlb code d results or soluto emple.5 Mtlb Code Results X:.5:.9 T59*X./.5*X.75 k.7e7*ep-65./t./k.*-x V5/.5*.5/****5 X T k V.878e Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
58 Numercl Deretto Numercl Deretto s method used to ppromte the vlue o dervtve over cotuous rego [,b]. Let s cotuous ucto wth step sze h. There re orwrd, bckwrd d cetered derece methods to ppromte the dervtves o t pot RR. 5. Forwrd Derece Appromto o the Frst Dervtve We kow lm For te ' '. Fgure 5.: Grphcl represetto o orwrd derece ppromto o rst dervtve So ou wt to d the vlue o t ' Δ ' hed s. Ths gves Where Δ, we m choose other pot Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
59 Emple 5. t The veloct o rocket s gve b ν t l 9.8t, t Where 'ν' s gve m/s d 't' s gve secods. Use orwrd derece ppromto o the rst dervtve o ν t to clculte the ccelerto t t 6s. Use step sze o t s. Soluto t t 6 Δ t t t t ν ν t t t 6 8 Hece ν ν ν 8 l ν 6 l ν 8 ν m / s 9.7m / s.75m / s The ect vlue o 6 c be clculted b derettg dt d t l 9.8t t t t t d 9.8 dt t m / s The bsolute reltve true error s True Vlue - Appromte Vlue t.699% True Vlue 9.67 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
60 5. Bckwrd Derece Appromto o the Frst Dervtve We kow For te I lm ' Δ ', ' Δ ' s chose s egtve umber, Ths s bckwrd derece ppromto s ou re tkg pot bckwrd rom. To d the vlue o t, we m choose other pot ' Δ ' behd s. Ths gves where Fgure 5. Grphcl represetto o bckwrd derece ppromto o rst dervtve Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
61 Emple 5. The veloct o rocket s gve b ν t l 9.8t, t t Use bckwrd derece ppromto o the rst dervtve o ν t to clculte the ccelerto t t 6 s. Use step sze o t s. Soluto t t ν 6 Δ t t t ν t t t t ν ν ν 6 l ν l ν ν The bsolute reltve true error s 9.7m / s.m / s m / s t.557% 9.67 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
62 5. Cetrl Derece Appromto o the Frst Dervtve As show bove, both orwrd d bckwrd dvded derece ppromto o the rst dervtve re ccurte o the order o Δ. C we get better ppromtos? Yes, other method to ppromte the rst dervtve s clled the Cetrl derece ppromto o the rst dervtve. From Tlor seres Δ Δ Δ!!!! Subtrctg equto rom equto!! Hece showg tht we hve obted more ccurte ormul s the error s o the order o. Fgure 5. Grphcl Represetto o cetrl derece ppromto o rst dervtve. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
63 Emple 5. The veloct o rocket s gve b ν t l 9.8, t t. t Use cetrl dvded derece ppromto o the rst dervtve o ν t to clculte the ccelerto t Soluto t t t t 6 ν t t ν t t Δ 6 8 t t t 6 6 ν 8 ν ν t 6s. Use step sze o t s 8 ν ν 8 l ν l ν 8 ν 5.. The bsolute reltve true error s t.7769% m / s.m / s 9.695m / s. The results rom the three derece ppromtos re gve Tble. Tble Summr o 6 usg deret dvded derece ppromtos. Tpe o Derece 6 t % Appromto m / s Forwrd Bckwrd Cetrl Clerl, the cetrl derece scheme s gvg more ccurte results becuse the order o ccurc s proportol to the squre o the step sze. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
64 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor 5. Hgher Order Dervtves Emple: Secod order dervtve: Note tht or the cetered ormulto, t s dervto o dervtve: '' Forwrd '' Bckwrd '' Cetered '' I Forwrd Derece Methods Frst Dervtve ' Secod Dervtve '' Thrd Dervtve Fourth Dervtve 6 II Bckwrd Derece Methods Frst Dervtve ' Secod Dervtve ''
65 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor Thrd Dervtve Fourth Dervtve 6 III Cetrl Derece Methods Frst Dervtve ' Secod Dervtve '' Thrd Dervtve Fourth Dervtve 6
66 Solvg Sstem o Ler Equtos 6. Ler Equto m s equto, whch vrble s epressed terms o d the costt m, s clled Ler Equto. I Ler Equto epoets o the vrble s lws oe. 6. Ler Equto vrbles:... b,,..., Where, re vrbles d,,,..., d b re costts. 6. Sstem o Ler Equtos: A Ler Sstem o m ler equtos d ukows s:... b... b... b b m Where m m,,,..., m m re vrbles or ukows d s d b s re costts. 6. Augmeted Mtr Sstem o ler equtos: b b b C be wrtte the orm o mtrces product b b b Or we m wrte t the orm AXb, Where A Augmeted mtr s [ A : b], X, b b b b b b b Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
67 Emple 6.: Wrte the mtr d ugmeted orm o the sstem o ler equtos 6z 6 z z Soluto: Mtr orm o the sstem s 6 6 z Augmeted orm s [ : b] 6 6 A. 6.5 Methods or Solvg Sstem o Ler Equtos. Guss Elmto Method. Guss -Jorde Elmto Method 6.5. Guss Elmto. Guss elmto s geerl method o dg possble solutos to ler sstem o equtos. Guss Elmto Method Step. B usg elemetr row opertos b b b Step. Fd soluto b bck substtutos. A A A B B B Emple 6.: Solve the sstem o ler equtos b Gusso- Elmto method 6 7 Soluto: Step. Augmeted mtr s R R r r r r Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
68 d b R R r r r r R 5 Equvlet sstem o equtos orm s: Step. Bck Substtuto Solutos re,, / / Emple 6.: For the below gure clculte the vlues o the ukow low rtes FRR, FRR usg Gusso- Elmto method FRR. F? 99% Bezee % Toluee F? 5% Bezee 9% Toluee % Xlee F kg/hr % Bezee % Toluee % Xlee Tow er Tow er F? % Toluee 9% Xlee Compoet mterl blce gves these three equtos o three vrbles Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
69 F F F.99F.5F F.F.9F.F BAugmeted mtr s RRRrR R.99/ rr RRRrR R./ rr RRRrRR-.9/-.9rR RRRrRR/-.9 RRRrRR/ Equvlet sstem o equtos orm s: FR R FRR FR R FR R.5FR R FR R 8.65 Step. Bck Substtuto FR R 8.65 FR R R R FR R7.95 FR R- FRR-FR R Guss - Jorde Elmto Method Guss - Jorde Method B usg elemetr row opertos b b b B B B Emple 6.: Solve the sstem o ler equtos b Guss-Jorde elmto method R R RR R R 8 - R R- R R R R R-7RR R R R Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
70 Soluto: Augmeted mtr s RRR rrrrr RRR rrr-rr RRR-rR RRRrRR-rR RRR-rRR/5 8 RRRrRR-rR 5 9 RRRrRR5rR RRRrRR-rR Equvlet sstem o equtos orm s: R R R R R R s the soluto o the sstem. Emple 6.5: Totl d compoet mterl blce o sstem o dstllto colums gves the lowg equtos:- FR R FRR FRR FRR 69.FR R.5FRR.5FRR.FRR.5.5FR R.8FRR.FRR.5FRR 7.8FR R.5FRR.5FRR.FRR 87. Use Guss - Jorde method to compute the our u-kow's bove equtos:- Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
71 Soluto: Augmeted mtr s RRR rrr-./rr RRRrRR-.5/rR RRRrRR-.8/rR RRRrRR-.55/-.5rR RRRrRR--./-.5rR RRRrRR-.88/-.8rR RRR rrr/-.5 RRRrRR/-.8 RRRrRR/ RRR rrr-rr RRRrRR-.8/rR RRRrRR-.857/rR 8 RRR rrr-rr.6 75 RRRrRR--.6/rR RRRrRR-rR Equvlet sstem o equtos orm: 75 FR R 6, FR R, FR R 75 d FR R 8 s the soluto o the sstem. 8 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
72 RR PRRIRR PRR HRRO PHRRI HRRPOR Emple 6.6 Blce the ollowg chemcl equto: RR RR RR R5R USoluto: P blce: RR RRRR R5R I blce: RRRR R5R H blce: RRRRR5R O blce: RRR5R Re-wrte these s homogeeous equtos, ech hvg zero o ts rght hd sde: RR RR- RR- R5R RR- R R- RR- RR- R5R RR- R5R At ths pot, there re our equtos ve ukows. To complete the sstem, we dee ulr equto b rbtrrl choosg vlue or oe o the coecets: RR We c esl solve the bove equtos to blce ths recto usg MATLAB such tble 6. Tble 6. Mtlb code d results or soluto emple 6.6 Mtlb Code Results A [ ]; B [;;;;]; X A\B X Ths does ot eld tegrl coecets, but multplg b wll do the trck: The blced equto wll be: PRRIRR PRR 8 HRRO PHRRI HRRPOR Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
73 RR RR RR Itertve Methods or Solvg Sstem o Ler Equto 7. Jcob Method Let the gve equto be b cz d b cz d b cz d I the gve sstem o equto s dgoll domt the d b c z d b c z d c b z 7.. Codto or Jcob method o coverges: The sucet codto s b c b c c b The bsolute vlue o the dgol elemet ech row o the coecet mtr must be greter th the sum o the bsolute vlues o the o-dgol elemets the sme row. Emple 7.: Use the Jcob terto method to obt the soluto o the ollowg equtos: 6RR - RR RR -5RR - -R R7 RR 5 Soluto Step : Re-wrte the equtos such tht ech equto hs the ukow wth lrgest coecet o the let hd sde: 6RR RR-RR 7RR 5R R-R 5RR RR RR 6 Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
74 P Step : Assume the tl guesses the clculte, d : Step : Use the vlues obted the rst terto, to clculte the vlues or the P terto: ` d so o or the et tertos so tht the et vlues re clculted usg the curret vlues: The results or 9 tertos re: Ukows Iter. R R R d Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
75 RR P P Emple 7.: Solve the equtos b Jcob method RR RR RR 7 RR RR RR 8 RR RR RR 5 Soluto Rewrte the gve equto the orm: Usg, we obt Puttg these vlues o the rght o equtos to obt These d urther tertes re lsted the tble below: The vlues 5P solutos re: th d 6P, RR th Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor tertos beg prctcll the sme, we c stop. Hece the d RR
76 RR -5RR RR P 7. Guss-Sedel Method I the gve sstem o equto s dgoll domt the d b c z d c z b z d b c Emple 7.: Use the Guss-Sedel method to obt the soluto o the ollowg equtos: 6RR - RR RR RR - -R R7 RR 5 Soluto Step : Re-wrte the equtos such tht ech equto hs the ukow wth lrgest `coecet o the let hd sde: rom eq. 6 5 rom eq. 7 rom eq. 5 Step : Assume the tl guesses, the clculte Use the updted vlue 8 d to clculte 7 Smlrl, use d to clculte.6 Step : Repet the sme procedure or the P d.69. terto : Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
77 d so o or the et tertos so tht the et vlues re clculted usg the curret vlues: d cotue the bove tertve procedure utl [RkRP. The procedure elds the ect soluto ter 5 tertos ol: P- RkRP P]/ RkRP P < ЄR Ror, d Ukow Iter. R R R Emple 7.: Solve b Guss Sedel method, the equtos: RR RR RR 7 RR RR RR 8 RR RR RR 5 Soluto As beore, we strt wth tl estmte. We wrte the gve equto the orm These d urther tertes re lsted the tble below: Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
78 P P The vlue the P the solutos s RR d rd d P tertos beg prtculrl the sme, we c stop. Hece d RR., RR Emple 7.5: For the below gure clculte the vlues o the ukow low rtes F, F d F b usg Guss-Sedel Method. F? 99% Bezee % Toluee F? 5% Bezee 9% Toluee % Xlee Compoet mterl blce gves these three equtos o three vrbles.99f.5f F.F.9F.F F.F.9F Re-rrgg the bove equtos F.5F /.99 F.F.F /.9 F.F /.9 F kg/hr % Bezee % Toluee % Xlee Tow er Strtg wth FFF/ Iterto F F F F? % Toluee 9% Xlee A Mtlb progrm or solvg the bove equtos usg Guss-Sedel method s Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor Tow er
79 lsted Tble 7. Tble 7. Mtlb code d results or soluto emple 7.5 Mtlb Code Results F.; F.; F. or : F-.5*F/.99; F-.*F-.*F/.9; F-.*F/.9; dsp[, F, F, F] ed Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
80 Solutos o No-Ler Equtos Oe Vrble Root Fdg U8. Grphcl Methods A smple method or obtg root o the equto s to plot the ucto d observe where t crosses the s. There s much vlble sotwre tht wll cltte mkg plot o ucto. We wll use Mtlb eclusvel or the course otes; however ou c use other sotwre such s Ecel or Mtcd or our work. Emple 8. 6 Solve ep.5 P 5 usg the grphcl method. Soluto 6 The ucto ep.5 P 5 c be plotted Fgure 8. usg the Mtlb sttemets lsted tble 8.. Tble 8. Mtlb code or solvg emple 8. usg grphcl method Mtlb Code :.:; 6*-ep-.5*./-5; plot,,[ ],[ ] lbel''; lbel'' grd o; zoom o Fgure 8. The grphcl method or roots dg. Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
81 d The Mtlb Zoom o sttemet llows the ucto to be zoomed t the cursor wth let mouse clck rght mouse clck wll zoom out. Ech tme ou clck the es lmts wll be chged b ctor o or out. You c zoom s m tmes s ecessr or the desred ccurc. Fgure 8. shows the ppromte root to be Fgure 8. The grphcl method or roots dg wth Mtlb Zoom o. The plot o ucto betwee RR R Rs mportt or uderstdg ts behvor wth ths tervl. More th oe root c occur wth the tervl whe RR d RR re o opposte sdes o the s. The roots c lso occur wth the tervl whe RR d RR re o the sme sdes o the s. Sce the uctos tht re tget to the s sts the requremet t ths pot, the tget pot s clled multple root. U8. The Bsecto Method The bsecto method or tervl hlvg c be used to determe the soluto to o tervl [RR, RR b] s rel d cotuous o the tervl d RR d RR hve opposte sgs. We ssume or smplct tht the root ths tervl s uque. The locto o the root s the clculted s lg t the mdpot o the subtervl wth whch the uctos hve opposte sgs. The process s repeted to speced ccurc. The procedure c be summrzed the ollowg steps Numercl Alss /Lec Wrtte b Assoc. Pro. Thrd Clss Dr. Zdoo M. Shkoor
DATA FITTING. Intensive Computation 2013/2014. Annalisa Massini
DATA FITTING Itesve Computto 3/4 Als Mss Dt fttg Dt fttg cocers the problem of fttg dscrete dt to obt termedte estmtes. There re two geerl pproches two curve fttg: Iterpolto Dt s ver precse. The strteg
More informationIn Calculus I you learned an approximation method using a Riemann sum. Recall that the Riemann sum is
Mth Sprg 08 L Approxmtg Dete Itegrls I Itroducto We hve studed severl methods tht llow us to d the exct vlues o dete tegrls However, there re some cses whch t s ot possle to evlute dete tegrl exctly I
More informationCS321. Introduction to Numerical Methods
CS Itroducto to Numercl Metods Lecture Revew Proessor Ju Zg Deprtmet o Computer Scece Uversty o Ketucky Legto, KY 6 6 Mrc 7, Number Coverso A geerl umber sould be coverted teger prt d rctol prt seprtely
More information12 Iterative Methods. Linear Systems: Gauss-Seidel Nonlinear Systems Case Study: Chemical Reactions
HK Km Slghtly moded //9 /8/6 Frstly wrtte t Mrch 5 Itertve Methods er Systems: Guss-Sedel Noler Systems Cse Study: Chemcl Rectos Itertve or ppromte methods or systems o equtos cosst o guessg vlue d the
More informationCURVE FITTING LEAST SQUARES METHOD
Nuercl Alss for Egeers Ger Jord Uverst CURVE FITTING Although, the for of fucto represetg phscl sste s kow, the fucto tself ot be kow. Therefore, t s frequetl desred to ft curve to set of dt pots the ssued
More informationCHAPTER 6 CURVE FITTINGS
CHAPTER 6 CURVE FITTINGS Chpter 6 : TOPIC COVERS CURVE FITTINGS Lest-Squre Regresso - Ler Regresso - Poloml Regresso Iterpolto - Newto s Dvded-Derece Iterpoltg Polomls - Lgrge Iterpoltg Polomls - Sple
More informationChapter Simpson s 1/3 Rule of Integration. ( x)
Cpter 7. Smpso s / Rule o Itegrto Ater redg ts pter, you sould e le to. derve te ormul or Smpso s / rule o tegrto,. use Smpso s / rule t to solve tegrls,. develop te ormul or multple-segmet Smpso s / rule
More informationITERATIVE METHODS FOR SOLVING SYSTEMS OF LINEAR ALGEBRAIC EQUATIONS
Numercl Alyss for Egeers Germ Jord Uversty ITERATIVE METHODS FOR SOLVING SYSTEMS OF LINEAR ALGEBRAIC EQUATIONS Numercl soluto of lrge systems of ler lgerc equtos usg drect methods such s Mtr Iverse, Guss
More informationChapter Gauss-Seidel Method
Chpter 04.08 Guss-Sedel Method After redg ths hpter, you should be ble to:. solve set of equtos usg the Guss-Sedel method,. reogze the dvtges d ptflls of the Guss-Sedel method, d. determe uder wht odtos
More informationMTH 146 Class 7 Notes
7.7- Approxmte Itegrto Motvto: MTH 46 Clss 7 Notes I secto 7.5 we lered tht some defte tegrls, lke x e dx, cot e wrtte terms of elemetry fuctos. So, good questo to sk would e: How c oe clculte somethg
More informationNumerical Differentiation and Integration
Numerl Deretto d Itegrto Overvew Numerl Deretto Newto-Cotes Itegrto Formuls Trpezodl rule Smpso s Rules Guss Qudrture Cheyshev s ormul Numerl Deretto Forwrd te dvded deree Bkwrd te dvded deree Ceter te
More informationPubH 7405: REGRESSION ANALYSIS REGRESSION IN MATRIX TERMS
PubH 745: REGRESSION ANALSIS REGRESSION IN MATRIX TERMS A mtr s dspl of umbers or umercl quttes ld out rectgulr rr of rows d colums. The rr, or two-w tble of umbers, could be rectgulr or squre could be
More informationMathematically, integration is just finding the area under a curve from one point to another. It is b
Numerl Metods or Eg [ENGR 9] [Lyes KADEM 7] CHAPTER VI Numerl Itegrto Tops - Rem sums - Trpezodl rule - Smpso s rule - Rrdso s etrpolto - Guss qudrture rule Mtemtlly, tegrto s just dg te re uder urve rom
More informationSt John s College. UPPER V Mathematics: Paper 1 Learning Outcome 1 and 2. Examiner: GE Marks: 150 Moderator: BT / SLS INSTRUCTIONS AND INFORMATION
St Joh s College UPPER V Mthemtcs: Pper Lerg Outcome d ugust 00 Tme: 3 hours Emer: GE Mrks: 50 Modertor: BT / SLS INSTRUCTIONS ND INFORMTION Red the followg structos crefull. Ths questo pper cossts of
More informationArea and the Definite Integral. Area under Curve. The Partition. y f (x) We want to find the area under f (x) on [ a, b ]
Are d the Defte Itegrl 1 Are uder Curve We wt to fd the re uder f (x) o [, ] y f (x) x The Prtto We eg y prttog the tervl [, ] to smller su-tervls x 0 x 1 x x - x -1 x 1 The Bsc Ide We the crete rectgles
More informationNumerical Analysis Topic 4: Least Squares Curve Fitting
Numerl Alss Top 4: Lest Squres Curve Fttg Red Chpter 7 of the tetook Alss_Numerk Motvto Gve set of epermetl dt: 3 5. 5.9 6.3 The reltoshp etwee d m ot e ler. Fd futo f tht est ft the dt 3 Alss_Numerk Motvto
More informationRegression. By Jugal Kalita Based on Chapter 17 of Chapra and Canale, Numerical Methods for Engineers
Regresso By Jugl Klt Bsed o Chpter 7 of Chpr d Cle, Numercl Methods for Egeers Regresso Descrbes techques to ft curves (curve fttg) to dscrete dt to obt termedte estmtes. There re two geerl pproches two
More informationUNIVERSITI KEBANGSAAN MALAYSIA PEPERIKSAAN AKHIR SEMESTER I SESI AKADEMIK 2007/2008 IJAZAH SARJANAMUDA DENGAN KEPUJIAN NOVEMBER 2007 MASA : 3 JAM
UNIVERSITI KEBANGSAAN MALAYSIA PEPERIKSAAN AKHIR SEMESTER I SESI AKADEMIK 7/8 IJAZAH SARJANAMUDA DENGAN KEPUJIAN NOVEMBER 7 MASA : 3 JAM KOD KURSUS : KKKQ33/KKKF33 TAJUK : PENGIRAAN BERANGKA ARAHAN :.
More informationChapter 12-b Integral Calculus - Extra
C - Itegrl Clulus Cpter - Itegrl Clulus - Etr Is Newto Toms Smpso BONUS Itroduto to Numerl Itegrto C - Itegrl Clulus Numerl Itegrto Ide s to do tegrl smll prts, lke te wy we preseted tegrto: summto. Numerl
More informationPreliminary Examinations: Upper V Mathematics Paper 1
relmr Emtos: Upper V Mthemtcs per Jul 03 Emer: G Evs Tme: 3 hrs Modertor: D Grgortos Mrks: 50 INSTRUCTIONS ND INFORMTION Ths questo pper sts of 0 pges, cludg swer Sheet pge 8 d Iformto Sheet pges 9 d 0
More informationICS141: Discrete Mathematics for Computer Science I
Uversty o Hw ICS: Dscrete Mthemtcs or Computer Scece I Dept. Iormto & Computer Sc., Uversty o Hw J Stelovsy bsed o sldes by Dr. Be d Dr. Stll Orgls by Dr. M. P. Fr d Dr. J.L. Gross Provded by McGrw-Hll
More informationComputer Programming
Computer Progrmmg I progrmmg, t s ot eough to be vetve d geous. Oe lso eeds to be dscpled d cotrolled order ot be become etgled oe's ow completes. Hrl D. Mlls, Forwrd to Progrmmg Proverbs b Her F. Ledgrd
More informationChapter Unary Matrix Operations
Chpter 04.04 Ury trx Opertos After redg ths chpter, you should be ble to:. kow wht ury opertos mes,. fd the trspose of squre mtrx d t s reltoshp to symmetrc mtrces,. fd the trce of mtrx, d 4. fd the ermt
More informationModule 2: Introduction to Numerical Analysis
CY00 Itroducto to Computtol Chemtr Autum 00-0 Module : Itroducto to umercl Al Am of the preet module. Itroducto to c umercl l. Developg mple progrm to mplemet the umercl method opc of teret. Iterpolto:
More informationChapter 2 Intro to Math Techniques for Quantum Mechanics
Wter 3 Chem 356: Itroductory Qutum Mechcs Chpter Itro to Mth Techques for Qutum Mechcs... Itro to dfferetl equtos... Boudry Codtos... 5 Prtl dfferetl equtos d seprto of vrbles... 5 Itroducto to Sttstcs...
More informationunder the curve in the first quadrant.
NOTES 5: INTEGRALS Nme: Dte: Perod: LESSON 5. AREAS AND DISTANCES Are uder the curve Are uder f( ), ove the -s, o the dom., Prctce Prolems:. f ( ). Fd the re uder the fucto, ove the - s, etwee,.. f ( )
More informationObjective of curve fitting is to represent a set of discrete data by a function (curve). Consider a set of discrete data as given in table.
CURVE FITTING Obectve curve ttg s t represet set dscrete dt b uct curve. Csder set dscrete dt s gve tble. 3 3 = T use the dt eectvel, curve epress s tted t the gve dt set, s = + = + + = e b ler uct plml
More informationChapter Linear Regression
Chpte 6.3 Le Regesso Afte edg ths chpte, ou should be ble to. defe egesso,. use sevel mmzg of esdul cte to choose the ght cteo, 3. deve the costts of le egesso model bsed o lest sques method cteo,. use
More informationLecture 3-4 Solutions of System of Linear Equations
Lecture - Solutos of System of Ler Equtos Numerc Ler Alger Revew of vectorsd mtrces System of Ler Equtos Guss Elmto (drect solver) LU Decomposto Guss-Sedel method (tertve solver) VECTORS,,, colum vector
More informationME 501A Seminar in Engineering Analysis Page 1
Mtr Trsformtos usg Egevectors September 8, Mtr Trsformtos Usg Egevectors Lrry Cretto Mechcl Egeerg A Semr Egeerg Alyss September 8, Outle Revew lst lecture Trsformtos wth mtr of egevectors: = - A ermt
More informationDifferential Entropy 吳家麟教授
Deretl Etropy 吳家麟教授 Deto Let be rdom vrble wt cumultve dstrbuto ucto I F s cotuous te r.v. s sd to be cotuous. Let = F we te dervtve s deed. I te s clled te pd or. Te set were > 0 s clled te support set
More informationMore Regression Lecture Notes CE 311K - McKinney Introduction to Computer Methods Department of Civil Engineering The University of Texas at Austin
More Regresso Lecture Notes CE K - McKe Itroducto to Coputer Methods Deprtet of Cvl Egeerg The Uverst of Tes t Aust Polol Regresso Prevousl, we ft strght le to os dt (, ), (, ), (, ) usg the lest-squres
More informationChapter 3 Supplemental Text Material
S3-. The Defto of Fctor Effects Chpter 3 Supplemetl Text Mterl As oted Sectos 3- d 3-3, there re two wys to wrte the model for sglefctor expermet, the mes model d the effects model. We wll geerlly use
More informationMathematics HL and further mathematics HL formula booklet
Dplom Progrmme Mthemtcs HL d further mthemtcs HL formul boolet For use durg the course d the emtos Frst emtos 04 Publshed Jue 0 Itertol Bcclurete Orgzto 0 5048 Mthemtcs HL d further mthemtcs formul boolet
More informationthis is the indefinite integral Since integration is the reverse of differentiation we can check the previous by [ ]
Atervtves The Itegrl Atervtves Ojectve: Use efte tegrl otto for tervtves. Use sc tegrto rules to f tervtves. Aother mportt questo clculus s gve ervtve f the fucto tht t cme from. Ths s the process kow
More informationThe definite Riemann integral
Roberto s Notes o Itegrl Clculus Chpter 4: Defte tegrls d the FTC Secto 4 The defte Rem tegrl Wht you eed to kow lredy: How to ppromte the re uder curve by usg Rem sums. Wht you c ler here: How to use
More informationFORMULAE FOR FINITE DIFFERENCE APPROXIMATIONS, QUADRATURE AND LINEAR MULTISTEP METHODS
Jourl o Mtemtcl Sceces: Advces d Alctos Volume Number - Pges -9 FRMULAE FR FINITE DIFFERENCE APPRXIMATINS QUADRATURE AND LINEAR MULTISTEP METHDS RAMESH KUMAR MUTHUMALAI Dertmet o Mtemtcs D G Vsv College
More informationAnalytical Approach for the Solution of Thermodynamic Identities with Relativistic General Equation of State in a Mixture of Gases
Itertol Jourl of Advced Reserch Physcl Scece (IJARPS) Volume, Issue 5, September 204, PP 6-0 ISSN 2349-7874 (Prt) & ISSN 2349-7882 (Ole) www.rcourls.org Alytcl Approch for the Soluto of Thermodymc Idettes
More informationINTRODUCTION ( ) 1. Errors
INTRODUCTION Numercl lyss volves the study, developmet d lyss of lgorthms for obtg umercl solutos to vrous mthemtcl problems. Frequetly umercl lyss s clled the mthemtcs of scetfc computg. Numercl lyss
More informationMathematics HL and further mathematics HL formula booklet
Dplom Progrmme Mthemtcs HL d further mthemtcs HL formul boolet For use durg the course d the emtos Frst emtos 04 Edted 05 (verso ) Itertol Bcclurete Orgzto 0 5048 Cotets Pror lerg Core 3 Topc : Algebr
More informationOutline. Finite Difference Grids. Numerical Analysis. Finite Difference Grids II. Finite Difference Grids III
Itrodcto to Nmercl Alyss Mrc, 9 Nmercl Metods or PDEs Lrry Cretto Meccl Egeerg 5B Semr Egeerg Alyss Mrc, 9 Otle Revew mdterm soltos Revew bsc mterl o mercl clcls Expressos or dervtves, error d error order
More information14.2 Line Integrals. determines a partition P of the curve by points Pi ( xi, y
4. Le Itegrls I ths secto we defe tegrl tht s smlr to sgle tegrl except tht sted of tegrtg over tervl [ ] we tegrte over curve. Such tegrls re clled le tegrls lthough curve tegrls would e etter termology.
More informationAdvanced Algorithmic Problem Solving Le 3 Arithmetic. Fredrik Heintz Dept of Computer and Information Science Linköping University
Advced Algorthmc Prolem Solvg Le Arthmetc Fredrk Hetz Dept of Computer d Iformto Scece Lköpg Uversty Overvew Arthmetc Iteger multplcto Krtsu s lgorthm Multplcto of polyomls Fst Fourer Trsform Systems of
More informationCS321. Numerical Analysis
CS Numercl Alyss Lecture 4 Numercl Itegrto Proessor Ju Zg Deprtmet o Computer Scece Uversty o Ketucky Legto, KY 456 6 Octoer 6, 5 Dete Itegrl A dete tegrl s tervl or tegrto. For ed tegrto tervl, te result
More informationCooper and McGillem Chapter 4: Moments Linear Regression
Cooper d McGllem Chpter 4: Momets Ler Regresso Chpter 4: lemets of Sttstcs 4-6 Curve Fttg d Ler Regresso 4-7 Correlto Betwee Two Sets of Dt Cocepts How close re the smple vlues to the uderlg pdf vlues?
More informationCOMPLEX NUMBERS AND DE MOIVRE S THEOREM
COMPLEX NUMBERS AND DE MOIVRE S THEOREM OBJECTIVE PROBLEMS. s equl to b d. 9 9 b 9 9 d. The mgr prt of s 5 5 b 5. If m, the the lest tegrl vlue of m s b 8 5. The vlue of 5... s f s eve, f s odd b f s eve,
More informationRoberto s Notes on Integral Calculus Chapter 4: Definite integrals and the FTC Section 2. Riemann sums
Roerto s Notes o Itegrl Clculus Chpter 4: Defte tegrls d the FTC Secto 2 Rem sums Wht you eed to kow lredy: The defto of re for rectgle. Rememer tht our curret prolem s how to compute the re of ple rego
More informationChapter 5. Curve fitting
Chapter 5 Curve ttg Assgmet please use ecell Gve the data elow use least squares regresso to t a a straght le a power equato c a saturato-growthrate equato ad d a paraola. Fd the r value ad justy whch
More information20 23 Evaluate the integral by interpreting it in terms of areas. (1 x ) dx. y 2 2
SECTION 5. THE DEFINITE INTEGRAL 5. THE DEFINITE INTEGRAL A Clck here for swers. S Clck here for solutos. 7 Use the Mdpot Rule wth the gve vlue of to pproxmte the tegrl. Roud the swer to four decml plces.
More information19 22 Evaluate the integral by interpreting it in terms of areas. (1 x ) dx. y Write the given sum or difference as a single integral in
SECTION. THE DEFINITE INTEGRAL. THE DEFINITE INTEGRAL A Clck here for swers. S Clck here for solutos. Use the Mdpot Rule wth the gve vlue of to pproxmte the tegrl. Roud the swer to four decml plces. 9
More informationMathematics HL and further mathematics HL formula booklet
Dplom Progrmme Mthemtcs HL d further mthemtcs HL formul boolet For use durg the course d the emtos Frst emtos 04 Publshed Jue 0 Itertol Bcclurete Orgzto 0 5048 Cotets Pror lerg Core Topc : Algebr Topc
More informationChapter Newton-Raphson Method of Solving a Nonlinear Equation
Chpter 0.04 Newton-Rphson Method o Solvng Nonlner Equton Ater redng ths chpter, you should be ble to:. derve the Newton-Rphson method ormul,. develop the lgorthm o the Newton-Rphson method,. use the Newton-Rphson
More informationChapter 2 Solving Linear Equation
EE7 Computer odelg Techques Egeerg Chpter Solvg er Equto A ler equto represets the ler depedece of qutty φ o set of vrbles through d set of costt coeffcets α through α ; ts form s α α... α φ If we replce
More informationLinear Algebra Concepts
Ler Algebr Cocepts Ke Kreutz-Delgdo (Nuo Vscocelos) ECE 75A Wter 22 UCSD Vector spces Defto: vector spce s set H where ddto d sclr multplcto re defed d stsf: ) +( + ) (+ )+ 5) l H 2) + + H 6) 3) H, + 7)
More informationAvailable online through
Avlble ole through wwwmfo FIXED POINTS FOR NON-SELF MAPPINGS ON CONEX ECTOR METRIC SPACES Susht Kumr Moht* Deprtmet of Mthemtcs West Begl Stte Uverst Brst 4 PrgsNorth) Kolt 76 West Begl Id E-ml: smwbes@yhoo
More informationSUM PROPERTIES FOR THE K-LUCAS NUMBERS WITH ARITHMETIC INDEXES
Avlble ole t http://sc.org J. Mth. Comput. Sc. 4 (04) No. 05-7 ISSN: 97-507 SUM PROPERTIES OR THE K-UCAS NUMBERS WITH ARITHMETIC INDEXES BIJENDRA SINGH POOJA BHADOURIA AND OMPRAKASH SIKHWA * School of
More informationNumerical differentiation (Finite difference)
MA umercl Alyss Week 4 To tk d wrte portle progrms we eed strct model of ter computtol evromet. Ftful models do est ut tey revel tt evromet to e too dverse forcg portle progrmmers to lot eve te smplest
More informationSequences and summations
Lecture 0 Sequeces d summtos Istructor: Kgl Km CSE) E-ml: kkm0@kokuk.c.kr Tel. : 0-0-9 Room : New Mleum Bldg. 0 Lb : New Egeerg Bldg. 0 All sldes re bsed o CS Dscrete Mthemtcs for Computer Scece course
More informationi+1 by A and imposes Ax
MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS 09.9 NUMERICAL FLUID MECHANICS FALL 009 Mody, October 9, 009 QUIZ : SOLUTIONS Notes: ) Multple solutos
More informationМИНИСТЕРСТВО ОБРАЗОВАНИЯ И НАУКИ РОССИЙСКОЙ ФЕДЕРАЦИИ. Численные методы. Учебно-методическое пособие
МИНИСТЕРСТВО ОБРАЗОВАНИЯ И НАУКИ РОССИЙСКОЙ ФЕДЕРАЦИИ Нижегородский государственный университет им. Н.И. Лобачевского Численные методы К.А.Баркалов Учебно-методическое пособие Рекомендовано методической
More informationChapter Newton-Raphson Method of Solving a Nonlinear Equation
Chpter.4 Newton-Rphson Method of Solvng Nonlner Equton After redng ths chpter, you should be ble to:. derve the Newton-Rphson method formul,. develop the lgorthm of the Newton-Rphson method,. use the Newton-Rphson
More informationRendering Equation. Linear equation Spatial homogeneous Both ray tracing and radiosity can be considered special case of this general eq.
Rederg quto Ler equto Sptl homogeeous oth ry trcg d rdosty c be cosdered specl cse of ths geerl eq. Relty ctul photogrph Rdosty Mus Rdosty Rederg quls the dfferece or error mge http://www.grphcs.corell.edu/ole/box/compre.html
More information3/20/2013. Splines There are cases where polynomial interpolation is bad overshoot oscillations. Examplef x. Interpolation at -4,-3,-2,-1,0,1,2,3,4
// Sples There re ses where polyoml terpolto s d overshoot oslltos Emple l s Iterpolto t -,-,-,-,,,,,.... - - - Ide ehd sples use lower order polyomls to oet susets o dt pots mke oetos etwee djet sples
More informationChapter 17. Least Square Regression
The Islmc Uvest of Gz Fcult of Egeeg Cvl Egeeg Deptmet Numecl Alss ECIV 336 Chpte 7 Lest que Regesso Assocte Pof. Mze Abultef Cvl Egeeg Deptmet, The Islmc Uvest of Gz Pt 5 - CURVE FITTING Descbes techques
More informationGraphing Review Part 3: Polynomials
Grphig Review Prt : Polomils Prbols Recll, tht the grph of f ( ) is prbol. It is eve fuctio, hece it is smmetric bout the bout the -is. This mes tht f ( ) f ( ). Its grph is show below. The poit ( 0,0)
More informationStats & Summary
Stts 443.3 & 85.3 Summr The Woodbur Theorem BCD B C D B D where the verses C C D B, d est. Block Mtrces Let the m mtr m q q m be rttoed to sub-mtrces,,,, Smlrl rtto the m k mtr B B B mk m B B l kl Product
More informationChapter 7. Bounds for weighted sums of Random Variables
Chpter 7. Bouds for weghted sums of Rdom Vrbles 7. Itroducto Let d 2 be two depedet rdom vrbles hvg commo dstrbuto fucto. Htczeko (998 d Hu d L (2000 vestgted the Rylegh dstrbuto d obted some results bout
More informationLinear Algebra Concepts
Ler Algebr Cocepts Nuo Vscocelos (Ke Kreutz-Delgdo) UCSD Vector spces Defto: vector spce s set H where ddto d sclr multplcto re defed d stsf: ) +( + ) = (+ )+ 5) H 2) + = + H 6) = 3) H, + = 7) ( ) = (
More informationDescribes techniques to fit curves (curve fitting) to discrete data to obtain intermediate estimates.
CURVE FITTING Descbes techques to ft cuves (cuve fttg) to dscete dt to obt temedte estmtes. Thee e two geel ppoches fo cuve fttg: Regesso: Dt ehbt sgfct degee of sctte. The stteg s to deve sgle cuve tht
More information6.6 Moments and Centers of Mass
th 8 www.tetodre.co 6.6 oets d Ceters of ss Our ojectve here s to fd the pot P o whch th plte of gve shpe lces horzotll. Ths pot s clled the ceter of ss ( or ceter of grvt ) of the plte.. We frst cosder
More informationChapter 1. Infinite Sequences and Series. 1.1 Sequences. A sequence is a set of numbers written in a definite order
hpter Ite Sequeces d Seres. Sequeces A sequece s set o umers wrtte dete order,,,... The umer s clled the rst term, s clled the secod term, d geerl s th clled the term. Deto.. The sequece {,,...} s usull
More information4. Runge-Kutta Formula For Differential Equations. A. Euler Formula B. Runge-Kutta Formula C. An Example for Fourth-Order Runge-Kutta Formula
NCTU Deprme o Elecrcl d Compuer Egeerg Seor Course By Pro. Yo-Pg Ce. Ruge-Ku Formul For Derel Equos A. Euler Formul B. Ruge-Ku Formul C. A Emple or Four-Order Ruge-Ku Formul
More informationChapter 2 Intro to Math Techniques for Quantum Mechanics
Fll 4 Chem 356: Itroductory Qutum Mechcs Chpter Itro to Mth Techques for Qutum Mechcs... Itro to dfferetl equtos... Boudry Codtos... 5 Prtl dfferetl equtos d seprto of vrbles... 5 Itroducto to Sttstcs...
More informationThe z-transform. LTI System description. Prof. Siripong Potisuk
The -Trsform Prof. Srpog Potsuk LTI System descrpto Prevous bss fucto: ut smple or DT mpulse The put sequece s represeted s ler combto of shfted DT mpulses. The respose s gve by covoluto sum of the put
More informationCS473-Algorithms I. Lecture 3. Solving Recurrences. Cevdet Aykanat - Bilkent University Computer Engineering Department
CS473-Algorthms I Lecture 3 Solvg Recurreces Cevdet Aykt - Blket Uversty Computer Egeerg Deprtmet Solvg Recurreces The lyss of merge sort Lecture requred us to solve recurrece. Recurreces re lke solvg
More informationChapter Runge-Kutta 2nd Order Method for Ordinary Differential Equations
Cter. Runge-Kutt nd Order Metod or Ordnr Derentl Eutons Ater redng ts cter ou sould be ble to:. understnd te Runge-Kutt nd order metod or ordnr derentl eutons nd ow to use t to solve roblems. Wt s te Runge-Kutt
More informationChapter 4: Distributions
Chpter 4: Dstrbutos Prerequste: Chpter 4. The Algebr of Expecttos d Vrces I ths secto we wll mke use of the followg symbols: s rdom vrble b s rdom vrble c s costt vector md s costt mtrx, d F m s costt
More informationA Technique for Constructing Odd-order Magic Squares Using Basic Latin Squares
Itertol Jourl of Scetfc d Reserch Publctos, Volume, Issue, My 0 ISSN 0- A Techque for Costructg Odd-order Mgc Squres Usg Bsc Lt Squres Tomb I. Deprtmet of Mthemtcs, Mpur Uversty, Imphl, Mpur (INDIA) tombrom@gml.com
More informationLevel-2 BLAS. Matrix-Vector operations with O(n 2 ) operations (sequentially) BLAS-Notation: S --- single precision G E general matrix M V --- vector
evel-2 BS trx-vector opertos wth 2 opertos sequetlly BS-Notto: S --- sgle precso G E geerl mtrx V --- vector defes SGEV, mtrx-vector product: r y r α x β r y ther evel-2 BS: Solvg trgulr system x wth trgulr
More informationINTERPOLATION(2) ELM1222 Numerical Analysis. ELM1222 Numerical Analysis Dr Muharrem Mercimek
ELM Numerl Alss Dr Murrem Merme INTEROLATION ELM Numerl Alss Some of te otets re dopted from Luree V. Fusett Appled Numerl Alss usg MATLAB. rete Hll I. 999 ELM Numerl Alss Dr Murrem Merme Tod s leture
More information4. Runge-Kutta Formula For Differential Equations
NCTU Deprme o Elecrcl d Compuer Egeerg 5 Sprg Course by Pro. Yo-Pg Ce. Ruge-Ku Formul For Derel Equos To solve e derel equos umerclly e mos useul ormul s clled Ruge-Ku ormul
More informationThe Derivation of Implicit Second Derivative Method for Solving Second-Order Stiff Ordinary Differential Equations Odes.
IOSR Jourl o Mtetcs (IOSR-JM) e-issn: - p-issn: 9-6X. Volue Issue Ver. I (Mr. - Apr. ) PP - www.osrourls.org Te Dervto o Iplct Secod Dervtve Metod or Solvg Secod-Order St Ordr Deretl Equtos Odes. Y. Skwe
More informationIntroduction to mathematical Statistics
Itroducto to mthemtcl ttstcs Fl oluto. A grou of bbes ll of whom weghed romtely the sme t brth re rdomly dvded to two grous. The bbes smle were fed formul A; those smle were fed formul B. The weght gs
More informationENGI 4430 Numerical Integration Page 5-01
ENGI 443 Numercal Itegrato Page 5-5. Numercal Itegrato I some o our prevous work, (most otaly the evaluato o arc legth), t has ee dcult or mpossle to d the dete tegral. Varous symolc algera ad calculus
More informationMATRIX AND VECTOR NORMS
Numercl lyss for Egeers Germ Jord Uversty MTRIX ND VECTOR NORMS vector orm s mesure of the mgtude of vector. Smlrly, mtr orm s mesure of the mgtude of mtr. For sgle comoet etty such s ordry umers, the
More informationGray Code in the Solution of the Nine Rings Chinese Game
Jourl o Mthemtcs Reserch; Vol. 9 No. 6; Decemer 7 ISSN 96-979 E-ISSN 96-99 Pulshed Cd Ceter o Scece d Educto Gr Code the Soluto o the Ne Rgs Chese Gme Erc Cesr Hug Shro Sherr Hug & Cheg-Hu Ts Morrso Acdem
More informationGENERALIZED OPERATIONAL RELATIONS AND PROPERTIES OF FRACTIONAL HANKEL TRANSFORM
S. Res. Chem. Commu.: (3 8-88 ISSN 77-669 GENERLIZED OPERTIONL RELTIONS ND PROPERTIES OF FRCTIONL NKEL TRNSFORM R. D. TYWDE *. S. GUDDE d V. N. MLLE b Pro. Rm Meghe Isttute o Teholog & Reserh Bder MRVTI
More information4 Linear Homogeneous Recurrence Relation 4-1 Fibonacci Rabbits. 组合数学 Combinatorics
4 Ler Homogeeous Recurrece Relto 4- bocc Rbbts 组合数学 ombtorcs The delt of the th moth d - th moth s gve brth by the rbbts - moth. o = - + - Moth Moth Moth Moth 4 I the frst moth there s pr of ewly-bor rbbts;
More informationApplication: Work. 8.1 What is Work?
Applcto: Work 81 Wht s Work? Work, the physcs sese, s usully defed s force ctg over dstce Work s sometmes force tmes dstce, 1 but ot lwys Work s more subtle th tht Every tme you exert force, t s ot the
More informationSoo King Lim Figure 1: Figure 2: Figure 3: Figure 4: Figure 5: Figure 6: Figure 7: Figure 8: Figure 9: Figure 10: Figure 11:
Soo Kg Lm 1.0 Nested Fctorl Desg... 1.1 Two-Fctor Nested Desg... 1.1.1 Alss of Vrce... Exmple 1... 5 1.1. Stggered Nested Desg for Equlzg Degree of Freedom... 7 1.1. Three-Fctor Nested Desg... 8 1.1..1
More informationComputational Modelling
Computtol Modellg Notes orfeeg Desg d Computg Oct t v.d Computtol Modellg b Pro Smo J. Co sjc@soto.c.uk Wt s Computtol Modellg? Computtol modellg d te use o ssocted umercl metods s bout coosg te rgt lgortm
More informationSome Unbiased Classes of Estimators of Finite Population Mean
Itertol Jourl O Mtemtcs Ad ttstcs Iveto (IJMI) E-IN: 3 4767 P-IN: 3-4759 Www.Ijms.Org Volume Issue 09 etember. 04 PP-3-37 ome Ubsed lsses o Estmtors o Fte Poulto Me Prvee Kumr Msr d s Bus. Dertmet o ttstcs,
More informationRandom variables and sampling theory
Revew Rdom vrbles d smplg theory [Note: Beg your study of ths chpter by redg the Overvew secto below. The red the correspodg chpter the textbook, vew the correspodg sldeshows o the webste, d do the strred
More informationA Brief Introduction to Olympiad Inequalities
Ev Che Aprl 0, 04 The gol of ths documet s to provde eser troducto to olympd equltes th the stdrd exposto Olympd Iequltes, by Thoms Mldorf I ws motvted to wrte t by feelg gulty for gettg free 7 s o problems
More informationAsynchronous Analogs of Iterative Methods and Their Efficiency for Parallel Computers
Itertol Coferece "Prllel d Dstrbuted Computg Systems" PDCS 23 (Ure, Khrv, Mrch 3-4, 23) sychroous logs of Itertve Methods d her Effcecy for Prllel Computers Msym Svcheo, leder Chemers Isttute for Modelg
More informationAssignment 7/MATH 247/Winter, 2010 Due: Friday, March 19. Powers of a square matrix
Assgmet 7/MATH 47/Wter, 00 Due: Frday, March 9 Powers o a square matrx Gve a square matrx A, ts powers A or large, or eve arbtrary, teger expoets ca be calculated by dagoalzg A -- that s possble (!) Namely,
More informationSection 5.1/5.2: Areas and Distances the Definite Integral
Scto./.: Ars d Dstcs th Dt Itgrl Sgm Notto Prctc HW rom Stwrt Ttook ot to hd p. #,, 9 p. 6 #,, 9- odd, - odd Th sum o trms,,, s wrtt s, whr th d o summto Empl : Fd th sum. Soluto: Th Dt Itgrl Suppos w
More informationCS321. Numerical Analysis
CS3 Nuercl Alss Lecture 7 Lest Sures d Curve Fttg Professor Ju Zhg Deprtet of Coputer Scece Uverst of Ketuc Legto KY 456 633 Deceer 4 Method of Lest Sures Coputer ded dt collectos hve produced treedous
More informationStrategies for the AP Calculus Exam
Strteges for the AP Clculus Em Strteges for the AP Clculus Em Strtegy : Kow Your Stuff Ths my seem ovous ut t ees to e metoe. No mout of cochg wll help you o the em f you o t kow the mterl. Here s lst
More informationSystems of second order ordinary differential equations
Ffth order dgolly mplct Ruge-Kutt Nystrom geerl method solvg secod Order IVPs Fudzh Isml Astrct A dgolly mplct Ruge-Kutt-Nystróm Geerl (SDIRKNG) method of ffth order wth explct frst stge for the tegrto
More information