[go: up one dir, main page]

0% found this document useful (0 votes)
66 views15 pages

NT Lab

N.T

Uploaded by

aditya dixit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
66 views15 pages

NT Lab

N.T

Uploaded by

aditya dixit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 15
Numewi cal METROD. Us NG C LANGUAGE = BisecHond Methool > — L* BisecHon Method */ # include < etdioh> i #© induol < Math. A > _ ploot FC float x) = é i Yopirn (ae nen - 4x -3)° vid biscet ( float *%, float 0, foat b int « itr) — £ = - xx = (tb)/2 3 a 7 a ot tC ier) : = = pint £("Tkvation no. % 3d y= 7 1.5 Fn’, ¥ity, ex), a - bh |__Nainc) “ a i _ = t _ a int ¢t¥=0 manity + a — t Xiao b,acey, Xt" oa Delight fomtl ("Enter th yaluss in b, — atlowt ol ree, Mow Mum (pra ons \h") | ot ScanF CUE APF LE La", £4 de hae 4nayitr), be bisect Ch ¥,a,b, citr), : ae) £ / SJ (FC) + frwr Ht incdwolt SMa. h> Heat 9 fant 2 =e Ye turn x Jog 10 (2) = 12; \ gist df (pout x) Shien slog 'O(~) 4+ 0 43429 3 Maun () 4 int ity, waxjty* foot A Me, 1, aexs; spiint® ("Ente x6 alto weol corot, """maninuun i HCOH In In) © conf (ELE zl" ho, | aed £ mandy): Gog like = J} tke €= Manige | thr+t) 4 Ae £lresdé (%)); my = Ae-h* sprint £ OT xr e Hon po. 13d, ""X=%3-F fy" be) 4) (fobs (4) fock 4 ( footx) EY Felurn gga (rn) - > ¥ O(n)’ 4 word regula (foot # oak 40, oat >, byw Jloat fou int ¥ itr) £ e ¥ uz Mow (CH He) / Cf Hy wfae)) + yoru ¢ 7 ++ C# itr)’ bynth ("Tyraton mo 7 3d X = 275 f /n™, # itr, +x)’ j | Main() Ul i int jy =0 Mayiker y Ms, yw tg ater" - sprint # (“En HY tHE Valuts par me, % "abound among marina =m ikratdn \w ) SconF Cy ge xb va", Emo km, hae, & wanitr)’ Zz AtpulaC ka, me d(rod, YOu), & itr)? ole, id 4 ay (£ (0) © FG) 20) Memes Fegule (£315, 2, MFO, £64), bt), ~Y ( gobs (tg-m) + ater) peintt Cay te 1 ol 120d Ons , Yt turn 0} root = 7 6.4 thn" ky x), 4 uwile City € anit); pantf (" seluton olay not enw "rat OA ng utnt\n ")) Yeburn | —_ 5 - Muller Me tho 4; 7F Mader 's Method */ # include Hj nelle H define 19 Floot_y (float x) t ¢ Kenan uss (x) —a* Xxh (Y)} 3 Nasri) 4 Inti, ik maasiby” ok LIT, Wd) mw, bd, atyn: -_ —__| _font£ (“Eyye tae ini dial <169> “al py ow mans Vn") ' Bee Gs te 1S ,—SeanfCze, gat): _{_ _Yoinef ("Enter atta of evroc, ""waninium jHrasions In") Ston—k ("VF Zo" fb acer, & manitr): | gov Gtv = V) jay c= Manibe 5 ite +4) { A= OnE TI-¥L£I-9)/ Cel ti - Lx-2)): = 1 : ous (4 070- Xer-2)) / (x 1 1-19-¥ [t-19)° fn = Ce ny 1 ee Dean at axe | Ay (X01)) > Cuts); 1 : £5 Sort Ome my Fey (XPT) + ow edie Cy XEE2T) = 4 ding (XETIT) a ~ = eaity (xer7)))) | / _ Ty (ved g ' - — - 7 [ ts eg LD sat) (meta), : ; aan ¢ ee | fet ay CX LT) lt) 7 (omy x5): : : : Mi) deci EEA ene ee pe eo | printe (" Ditvopon no. % Zo" "y= VFS ENR" moe ao ie, % Biers _ _ a , — fry al: Cx Peed METI) < aerr) oo a _| “s a a =_—s Print (MARR 7 Bel i erations "PK othtr Aatution oy teh BN nt ie x bats : xe kuy, 0 - Matt Titans nt stdin "solu bin lou st converge \n") remrn | [7 * Posty petted or poading docgat tigen valus */ _# incluotly < Stoo > __ # incude ~ | Seer —_ ial find pax ao vot ¥ Max, array £) _ int i ¥ Maw abs( x Lod); eat ten itt) _ aa v4 pobe( x fj] | _ Main () - _ - - — 4 _ oo fost otniwl, x IVT IW vox, ee tn, ae eT 2 s antiyg, Kier, mevide Page No, 3 Prim tt ines fae ogre romac \n") for (;=0' 1 tn sy jtt) yor Y Len j+ 4) comet, La BFL D; - __printt "En tir kM inv pol apptow'ma Hn" £0 ke Uyen vector \ wn") or (1=0° FEN 4) cant COLE" gn £id L* pent Cy EY, 4 ALT), * sprinth ("Ttv mo Eigen Valut " "Breen Vector \w")" 7 Wau fending kee Jorg t ugtn vabut jn 2 inhi oppran. agen verbor* fond pon ( he, x) /* your ubeyting the 1 HroHin, * _ pox CUtr=) 5 iby <=>Mayity 9 jt +t) = U : ; _ /* dooh ® mulply the mats @ ano x? / } Joctizo Ces 145) _ _ & - geo - - _dox (K=O Le we att) - a Sat oLITe) * x fk) _ oe 1Gii pindmay CLtiy)) _ — CGz0 9M ity ab I/et) Maye =0 ee - fortis, en sj +t) £ - oe - Page No. |—____ 4 : \ pate Cees fobs (xf -rh1) i Yy Ctr > Mane) wart = Om - _ XGI= rL/I = 3 7 ere’ ™ fobalt-e)) + ne __printt ("% tu 2 24dF" jte OO} we =05 Pen: p47) printh CO") 9:3 Ff" xr) sprintf ("\y')’ 3 44 Clery <= ae) ££ (mane ct aerr)) rin th Cwnvargs in ol! "THropiond (nj kr)” 0 Fen: j4t) sprinth Cy L% 303 = ¥. 6.2 Fn” mt a Dd) syinth( Cin") 5 vem V: 3 5 sprint (" salut! fro 044 not wenn 1 feo ot nah tnt Kane re burn I) 5 Delight | Date Gaus jordan mit tho */ _Hinclud¢< st dio-k> - | Hoe dine. NB Main) 4 | ot aJw Jint] t; toto, yet - beinté (Enter the urments 6 te " “sugmtnkd Matin jowwr \n")) . a dor liz OVEN +t) spocl yao, jen itr 7 senfC'VF" £aliIY I): : I J* row Cadula tng HA veluws Of 2, 43 ua tl | a progeny gtr 4 ry G=07 Fem) f+) 4 _ wy Git < 42 7 _ tzafdlytfalpj ci - dor (k=0) k eN+ K+t) — _ ofJlkj - = jl [elt ty a 7 4 = —— /* Now printing tht lia matrin */ sprint ® ("The cb agonak Mo Prim a i=Nn") gor i=2, 1oN; itt) t Page No, \V Date | print Cz 5.49 €" afi Lyd); _ = prnt® CVn") 5 ' _ 4 : L* Now peinting th vesyls?/ point F(T a plubt Dn d= Nn") G20; FON itr) sprint? CV Dyga) 27 744 \n", jn, abide wI/als1b7) ; Gaus Eliminat on | ¥ Gaurs Uinina Hin method * / #H induolt < ctolio. h> HE olifine N+ _ main ( ) £ ftoot a Inllw+i] xfwJ tS: im ti, j,k print? CO" Gcger Ht Ulumt of fhe" " cogent motrin rouwin \n") | a y(j=0' FEN tt) 7 / - pene), jrt) ¢ f" £0 Lif} ), - a oo pit sfor Gs pel Pen, itt) 4 oo teabia jade Lyd _ _ | for (k=0° kent) y kt) = — 6 Delight alJfk] =o Gauite, j - L* Now printing The wppte Eviongulor matvin */ aes \n)) _upxint F ("The Up a0 triangular Malyin _ a i # define MAxm 100 Delight Holefine ORDER & —_Main() . a oak an [MAYMt)] ay [NAxM 41] . dus fmaxm +] [ ORDER +): - nr et.0 or=ho MP, dt dry mnt n drtrky sprintf C"En tr the valur_df n\n”) } stank ("%d" dnd) sprint h ("Ente 2h values urn form x y/n")* een rts) dco ("YF LF" £ ant] hay Lid); printl ('Entty 24 valua of yx") _printrtFor which yolur “yy M_warcted \ »") ween e CTL EM hw); A = oy J] - a x fo) L® Now Making the ~ babe *) cabs Coludoing the Ise ordlee nw *) ve (is0' 1 <=n' +4) udp Iti) = ay Le] ~ ay 59, - 7* Caludetiny He Acind & Ligher order Liphrenu M] pot (gers ye? ORDER y tt ¢ x for itd) perne pitt) aby ULL 12 Ciel by oo . e 01 ty 1 a — —_ T* Now pording Xe */ a —+ = ize — r = | ah de C! Cox fi]? ¥)) itt: — _ de L/* Now ay] wd ay LI wa yot/ | fee | ps (e-oxEiI)/4-: ypeay hl} GC Co /* Now carr ying out intr spolahion * foclk=), ko=ORbER? k++) p-kt)' or Hk) = (nel/dO e wee TKI) Ghent Celene 2 Eg 22 C2FIn”, x ge: ©. Simpson Rude: - L_1® Simppbn ts Rude */ Hinduols <¢ruo-k > - vat Yy C pwat x) _ = e@ : : Yeuen Lf OFX tex) 5 4 Main () < Poot x0, Xn hy 6! a int iin —— = spuls (NEn te 0, wy ~Y puinstrveds) | Boank Cre LP rd" be to, by pnd) WE Gtrowed ln) Delight | kg= 8 (29) ay Cx Dt fey Groth), } LL ces iene, ited) ate tr y (Ae tie d+ ary (ae FU) KADY ‘a CEC" Velut y inky vol wa vy, it £ An, (hls) eA) ) Euley 's mekhod /* Euler's Method *+/ # incuole < stvo b> fort of Cpuokt x pocty) _— ye kurn ary, 4 - _ Moun (> at a ok Ho, Yo Aye my ys fuk En tte iN valu of Hs, yo, Rye) ACanE CME LF ELEY, km, hyo ER, £m) calc iarey e ee hile Cr) XL oo yA OW) Ye burn eee _— getty olPh Ay) Ay teh’ EC" yktin X22 sprint. - whin gene. DEVRY my 5G Le Le

You might also like