Least-Squares Regression

Size: px
Start display at page:

Download "Least-Squares Regression"

Transcription

1 Lest-Squres Regresson Curve fttng Iprove eperentl dt Modelng 5 Eple: 7 eperentll derved ponts ehbtng sgnfcnt vrblt Roberto Muscedere It s probble tht t soe pont n our creer ou wll hve to nlze soe tpe of dt. Ths dt wll hve coe fro soe tpe of observed effect, or wll be fro soethng ou hd no control over. As n engneer, ou wll need to nlze ths dt n order to fnd soe prtculr chrcterstc or trend. Wht ou wll do wll depend on the nture of the dt. If for eple the dt ppers to hve soe vrblt to t, ou wll need to reduce ths error soe how. Curve fttng s one w to do ths. Tpcll curve fttng s used to tr to fnd trend n dt so tht t cn be odeled. Lter, wth ths odel, ou cn perfor other clcultons, but don t forget tht t s onl odel. In the eple bove, we hve severl ponts on grph nd we wsh to fnd soe w to odel ths dt Regresson

2 Lest-Squres Regresson Polnol fttng Eple: 6 th order ft Psses through ll ponts Wde osclltons Roberto Muscedere We cn use polnol fttng, but n ths cse the ponts pper to be followng lner trend. Although we cn use polnol fttng, t ll depends on the dt we re gven. Here we see 6th order ft, but ths curve s not vld outsde the rnge gven. The curve fttng we choose depends on our dt Regresson

3 Lest-Squres Regresson Best lne of ftness Better pproton of dt Eple: best lne through ll ponts Vld for generl/pproton clcultons Roberto Muscedere 3 In ths cse, the best tpe of ftness s lner ft. It offers us good pproton of the dt nd t helps us eclude soe of the splng error. Norll we use lnes of best ft for generl clcultons nd pprotons. We should be wre tht ths tpe of fttng not lws stsf the needs of our dt Regresson 3

4 Lner Regresson Splest eple of lest-squres pproton s fttng strght lne to set of pred observtons (, ), (, ),, ( n, n ) Mthetcl epresson for strght lne: Where b s the ntercept, s the slope, ε s the error or resdul b 3-7 Roberto Muscedere 4 We wll be lookng t the splest eple of lest-squre regresson known s lner regresson. Bscll f we re gven set of dt prs (n ths cse nd vlues on grph), we cn deterne lne of best ft, where b s the ntercept nd s the slope. ε s the error of our pproton, soetes lso known s the resdul Regresson 4

5 Error, or resdul s: Lner Regresson b Dscrepnc between the true vlue of nd the pproton b- 3-7 Roberto Muscedere 5 We cn rerrnge our equton of the lne to fnd the error or wht s clled epslon here. Agn, ths s the dfference between the true vlue of nd our pproton b Regresson 5

6 Lner Regresson Mnze the su of the resdul errors for ll the vlble dt: n An strght lne pssng through the dpont results n nu error 3-7 Roberto Muscedere n b Mdpont 6 In order to fnd the lne of best ft, we need to nze the error soe how. There re n ws to do ths, but we re lookng for the best w. One opton s to su up the error of our pproton. Ths opton s not dequte snce n lner pproton whch les on the d pont of our dt wll gve the nu error Regresson 6

7 Lner Regresson Mnze the su of the bsolute resdul errors: n n b An strght lne wthn the dshed lnes results n nu error 3-7 Roberto Muscedere 7 Another optons s to use the su of the bsolute error. However, ths ethod too suffers fro gvng flse pprotons. In ths cse n lne n between our ponts wll nze the error Regresson 7

8 Lner Regresson Mn crteron The lne s chosen tht nzes the u dstnce tht n ndvdul pont flls fro the lne Gves undue nfluence to n outler ( sngle pont wth lrge error) Outler 3-7 Roberto Muscedere 8 The s ethod known s n n optzton theor whch bscll tres dfferent pprotons n the ttept to nze the overll error fro the true dt. Ths ethod lso suffers snce sngle pont wth lrger error (outler) cn severel pct the pproton Regresson 8

9 Lner Regresson A better strteg tht overcoes the shortcongs of the prevousl entoned pproches s to nze the su of the squres of the resduls, E: E n n b Ths crteron elds unque soluton for gven set of dt 3-7 Roberto Muscedere 9 Our best choce s to use the su of the squre resduls. Ths error functon wll lws eld unque soluton for our gven dt. As our dt chnges, our pproton wll chnge. It s not susceptble s the erler error functons Regresson 9

10 Lner Regresson Dfferentte wth respect to ech vlue to deterne vlues of nd b E b E n n b b 3-7 Roberto Muscedere In order to deterne the vlues of nd b, we dfferentl the error functon wth respect to ech coeffcent. Ths dfferentton s frl sple snce the error functons re lner Regresson

11 Lner Regresson Set dervtves to zero wll result n nu E Splf suton notton b b b nb 3-7 Roberto Muscedere Settng the dervtves equl to zero wll result n nu error. Here we lso use splfed suton notton. All the sutons hve the se dt rnge Regresson

12 Lner Regresson Equtons cn be represented s set of two sultneous lner equtons wth two unknowns nb b 3-7 Roberto Muscedere We cn then represent these equtons s set of two sultneous lner equtons wth two unknowns. We cn now solve for nd b Regresson

13 Lner Regresson Cn use tr solvng ethods or Crer s rule n b 3-7 Roberto Muscedere 3 We cn solve these equtons usng ether tr ethods or snce the tr s resonbl sll, we cn lso use Crer s rule Regresson 3

14 Regresson Roberto Muscedere 3-7 Roberto Muscedere Lner Regresson Lner Regresson Cn use tr solvng ethods or Crer s rule n b n n When we solve the we end up wth these equtons. All of the vlues re constnts tht re bsed on our vlues of nd.

15 Eple: Regresson Clss (p.) clss Regresson { prvte: // ll dt s prvte double *, *; unsgned nt n; publc: vod llocte(unsgned nt nu); vod unllocte(); Regresson(unsgned nt nu, double *, double *); Regresson(const Regresson &); ~Regresson(); Regresson &opertor=(const Regresson &rhs); double lner(double &, double &b); ; 3-7 Roberto Muscedere 5 Here s the begnnng of clss tht wll perfor regresson clcultons for us. Snce we cn hve n nuber of prs of nd, we declre vrbles nd s dnc. We wll then llocte the ount of eor we need to store the prs. n s spl the nuber of prs of dt tht re currentl llocted. Snce we hve dnc eor n ths clss we wll hve functon tht wll llocte the eor for us, nd we wll lso hve functon tht wll un-llocte t. Our storge for nd s prvte, so we need to fcltte w to llow other functons to provde us wth the dt prs. Ths wll hppen through the frst constructor. The second constructor s present snce we re usng dnc eor nd hve to provde for w to crete new objects fro prevous ones. The opertor= overlod ests lso to enble the copng of objects. Lstl the lner regresson functon s defned whch wll return the epslon totl error s well s preters nd b Regresson 5

16 Eple: Regresson Clss (p.) vod Regresson::llocte(unsgned nt nu) { n = nu; f (nu == ) { cout << "Dt ept." << endl; = = ; return; = new double[n]; = new double[n]; vod Regresson::unllocte() { f () delete[] ; f () delete[] ; 3-7 Roberto Muscedere 6 Here we hve our dnc eor functons. It reebers the nuber of prs to be stored nd t wll then llocte the eor to hold those prs. Soe error checkng s done to ke sure n s never less thn. Notce the use of unsgned ntegers to vod negtve stutons s well Regresson 6

17 Eple: Regresson Clss (p.3) Regresson::Regresson(unsgned nt nu, double *, double *) { llocte(nu); for (unsgned nt = ; < nu; ++) { [] = []; [] = []; Regresson::Regresson(const Regresson &) { llocte(.n); for (unsgned nt = ; < n; ++) { [] =.[]; [] =.[]; 3-7 Roberto Muscedere 7 The frst constructor lloctes the necessr ount of eor nd then copes t fro the cllng functon. Ths s n es w to get dt nto the clss. The second constructor s for genertng duplcte objects. Ths functon lloctes eor bsed on the sze of the object pssed nd then copes the dt fro one object to nother Regresson 7

18 Eple: Regresson Clss (p.4) Regresson::~Regresson() { unllocte(); Regresson &Regresson::opertor=(const Regresson &rhs) { f (ths!= &rhs) { unllocte(); llocte(rhs.n); for (unsgned nt = ; < n; ++) { [] = rhs.[]; [] = rhs.[]; return *ths; 3-7 Roberto Muscedere 8 The destructor spl clls the unllocte functon. The opertor= overlod frst checks to ke sure we ren t copng fro the se object. If not, we unllocte the current object, llocte spce bsed on the sze of the one we re copng fro nd then copes ll the dt eleents Regresson 8

19 Eple: Regresson Clss (p.5) double Regresson::lner(double &, double &b) { double su =, su =, su =, su = ; f (n == ) { cout << "Dt ept." << endl; return -; for (unsgned nt = ; <n; ++) { su += []; su += []; su += [] * []; su += [] * []; double D = n * su - su * su; = (n * su - su * su) / D; b = (su * su - su * su) / D; double epslon = ; for (unsgned nt = ; <n; ++) { epslon += fbs([] - b - *[]); return epslon; 3-7 Roberto Muscedere 9 Fro our derved equtons, we wll need the su of ll the s, the su of ll the s, the su of ll the s squred nd the su of the s ultpled b the s. We therefore set up locl vrbles to store these clcultons. We clculte these vlues wth loop tht perfor the clcultons fro ech nd pr. Once tht s done, we cn then clculte nd b. Snce the hve the se denontor, we cn pre clculte tht. nd b re clculted bsed on the prevous clcultons on the dt stored n the object. In order to test how good our lne of ft s, we bck substtute the vlues of nd b bck nto the functon to clculte our overll epslon. We ke sure to strp the sgn so we cn see the overll error. Ths error s the return vlue Regresson 9

20 Eple: Lner Regresson - Test Code nt n(vod) { double [] = {,,, 3, 5 ; double [] = {,.4,., 3.5, 4.4 ; unsgned nt n = szeof() / szeof([]); Regresson dt(n,,); double, b, e; e=dt.lner(,b); cout << "Soluton: " << endl; cout << " = " << << endl << "b = " << b << endl; cout << " or " << endl; cout << " = " << << "* " << "+ " << b << endl; cout << "epslon s " << e << endl; 3-7 Roberto Muscedere Our testng code, n, hs our testng prs set up n sttc rr. We crete our object dt wth n rguent of n (whch s deterned b enng the sze of the sttc dt) nd the nd dt sets. Once ths s done, we cll the solve functon to perfor the lner regresson whch returns us the epslon error s well s nd b. We then crete nce output whch shows the vlues for nd b, nd lso the equton of the lne wth the error noted Regresson

21 Eple: Lner Regresson - Output Soluton: = b = or = * epslon s Y X Dt Appro 3-7 Roberto Muscedere Ths s the output of the code. The fgure s not prt of the code, but t s ncluded so tht ou cn see the nput ponts (sold lne) nd the lne of best ft (dotted lne) Regresson

22 Polnol Regresson Lest squres ethod cn be etended to ft dt to n -th order polnol: Su of the squres of the resduls s: E n 3-7 Roberto Muscedere Soetes lner regresson sn t dequte to odel dt. We need to odel ore cople dt. For ths, we cn etend the order of our lner regresson (whch s currentl ) to n order (n ths cse ). In dong ths, we wll crete n pproton whch depends on, where goes fro to. Just lke lner regresson, we clculte the error functon s the su of the squre of the resduls Regresson

23 Regresson Roberto Muscedere 3-7 Roberto Muscedere Polnol Regresson Polnol Regresson Dfferentte wth respect to ech unknown coeffcent: E E E E In order to deterne the coeffcents, we need to dfferentl ech equton wth respect to. We cn see the pttern here, ech lne s essentll the se ecept the power of (t the end of the equtons) s ncresng.

24 Regresson Roberto Muscedere 3-7 Roberto Muscedere Polnol Regresson Polnol Regresson Set error to zero We now set ll the equtons to zero n order to nze the error.

25 Regresson Roberto Muscedere 3-7 Roberto Muscedere Polnol Regresson Polnol Regresson Rerrnge to develop set of equtons: n We cn rerrnge the equtons so tht the coeffcents ( ) re n nce coluns. Wh do we do ths?

26 Regresson Roberto Muscedere 3-7 Roberto Muscedere Polnol Regresson Polnol Regresson Rerrnge nto tr for: n So we cn plce ll of the nforton n tr. Once we hve ths tr, we cn use technques we developed erler (guss-jordn) to solve for the coeffcents. Notce the trend of the coeffcents. The upper dgonl nd lower dgonl of the left sde of the tr re the se we cn trnspose ths tr nd stll hve the se tr. We wll tke dvntge of ths trend when we wrte the code to buld the tr.

27 Eple: Regresson Clss (p.6) // Assue Mtr clss ests clss Regresson { double pol(unsgned nt degree, double *); ; 3-7 Roberto Muscedere 7 Snce we know we wll need tr to perfor the polnol regresson, we wll ssue tht our tr code s prt of ths code. We cn use our estng clss whch we lred setup for lner regresson. He we just dd the functon prototpe for the pol functon. It tkes the polnol degree nd the rr of where to store the coeffcents of. It too returns the totl epslon error Regresson 7

28 Eple: Regresson Clss (p.7) double Regresson::pol(unsgned nt degree, double *v) { unsgned nt, j; double *sue, t; f (n == ) { cout << "Dt ept." << endl; return -; Mtr t(degree +, degree + ); sue = new double[ * degree + ]; for ( = ; <= * degree; ++) { sue[] = ; for (j = ; j<n; j++) { sue[] += pow([j], ); for ( = ; <= degree; ++) { for (j = ; j <= degree; j++) t.set(sue[j + ],, j); delete[] sue; 3-7 Roberto Muscedere 8 Ths s pge of of our solvng functon. We begn b declrng soe vrbles: we wll need nd j s counters snce we wll be fllng up tr wth soe vlues. We frst ke sure we hve dt n our object, otherwse leve wth negtve error. sue s dnc rr of eleents tht wll hold the vlues of the su of the eleents to the power. Therefore, eleent wll be the su of the eleents to the power, or essentll n. Eleent wll be the su of the eleents to the power. Eleent wll be the su of the eleents to the power nd so on. When we look bck to our trget tr we wll see tht we need to go up to power of. So the pssed rr wll hve + eleents. degree s the order of the polnol pproton. Now tht we know degree we cn crete tr. Our tr needs to be degree+ rows nd degree+ coluns. We then llocte the eor for sue. We cn begn clcultng the tr. We ve prevousl llocted eor to hold sue nd now we wll fll t. We crete loop, countng wth, to go fro to * nclusvel. For ech, we clculte the su of ll the s to the th power. To ke our lves lttle eser, we wll use the th lbrr functon pow. It tkes two rguents, the bse nd the eponent. We use j to count up ech to the power. Now tht we hve ll the constnts for the left sde of the tr, we fll the tr. Lookng bck we see trend tht ech row begns wth the su of s to the power of the row. So we fll the eleents bsed on ths. We use s row counter (fro to nclusvel) nd we use j s colun counter (gn fro to nclusvel). At poston,j we plce n eleent j+, whch s the colun nuber plus the row nuber. Once ths s done, we cn un-llocte sue snce we don t need t nore Regresson 8

29 Eple: Regresson Clss (p.8) for ( = ; <= degree; ++) { t = ; for (j = ; j<n; j++) { t += [j] * pow([j], ); t.set(t,, degree + ); cout << "Mtr before guss-jordn s:" << endl << t; t.gussjordn(); // solve the tr for ( = ; <= degree; ++) v[] = t.get(, degree + ); double epslon =, e; for ( = ; < n; ++) { for (j =, t =, e = ; j <= degree; j++, t *= []) e += v[j] * t; epslon += fbs([] - e); return epslon; 3-7 Roberto Muscedere 9 We now hve to fll the rght sde of the tr. Agn, f we look bck to the tr, we wll see tht the rght colun contns the su of tes to the power of the row. So we crete loop to perfor ths clculton. It s slr to the loop we used to setup sue. Once the vlue s clculted, we plce t n the rght prt of the tr. Now our tr s coplete. We prnt out the contents so we cn see wht t looks lke. Then we perfor the guss-jordn ethod on t to solve t. Assung ths works (we ren t checkng for tr sngulrtes) we the cop the soluton nto the pssed rr v (the coeffcents of the polnol). Just lke n the lner regresson code, we wll do full error clculton to see how good our ft s. Ths wll tke nested look s we hve to clculte the error of ech pont. s our dt counter. We frst set epslon to zero. Our nner loop frst sets j, our coeffcent counter, to zero nd t wll loop untl j s equl to the degree of ths polnol nclusvel. t s our representton of [] to the jth power. We sve lttle CPU te here b ultplng t b [] fter ever loop. t strts t, or []^ nd grows wth ech terton. We clculte v[j]*t for ech coeffcent. When the nner loop s done, we subtrct ths ccuulted error fro [] nd then dd the bsolute vlue to epslon nd then go to the net dt pont. We return epslon when levng the functon Regresson 9

30 Eple: Polnol Regresson - Test Code nt n(vod) { unsgned nt ; double e; double [] = {,,, 3, 4, 5, 6, 7, 8 ; double [] = { 4, 5,, 7,, 6,, 3, ; unsgned nt n = szeof() / szeof([]); Regresson dt(n,,); unsgned nt = ; double *s = new double[ + ]; e = dt.pol(, s); cout << "Soluton: " << endl; cout << " = " << showpos; for ( = ; <= ; ++) cout << s[] << "*^" << << " "; cout << endl << "error s " << e << endl; delete[] s; 3-7 Roberto Muscedere 3 Our test code gn s slr to the lner regresson test code. We setup sttc lst of s nd s. We cn clculte n b usng szeof. We set our order to n ths cse, but ou cn chnge ths dependng on the dt we re trng to pprote. We then crete our Regresson object we cll t dt nd we set t up to hve n eleents nd the contents of nd. We the solve the pproton b cllng the pol functon. We conclude b prntng out the pproton equton usng the clculted coeffcents Regresson 3

31 Eple: Polnol Regresson - Output Mtr before guss-jordn s: Soluton: = *^ *^ -.339*^ error s Y X Dt Appro 3-7 Roberto Muscedere Regresson 3

CURVE FITTING AND DATA REGRESSION

CURVE FITTING AND DATA REGRESSION Numercl Methods Process Sstems Engneerng CURVE FIING AND DAA REGRESSION Numercl methods n chemcl engneerng Dr. Edwn Zondervn Numercl Methods Process Sstems Engneerng Dngerous curves!!! hs s not ectl wht

More information

COMPUTATIONAL INTELLIGENCE

COMPUTATIONAL INTELLIGENCE COMPUTATIONAL INTELLIGENCE LABORATORY CLASSES Immentton smplstc verson of the network for some nference resons Adrn Horzyk IMPLEMENTATION OF THE SIMPLISTIC OR AANG Imment the smplstc verson of n structure

More information

Consumer 2 (wants to go down first, then left)

Consumer 2 (wants to go down first, then left) ECO 70, Problem Set en Cbrer. Suose two consumers hve lecogrhc references where erson rnks bundles b the level of commodt nd onl consders the level of commodt two f bundles hve the sme mount of commodt.

More information

COMPUTATIONAL INTELLIGENCE

COMPUTATIONAL INTELLIGENCE COMPUTATIONAL INTELLIGENCE LABORATORY CLASSES Immentton smplstc verson of the or AANG network for some nference resons Adrn Horzyk IMPLEMENTATION OF THE SIMPLISTIC OR AANG Imment the smplstc verson of

More information

Outline. Third Programming Project Two-Dimensional Arrays. Files You Can Download. Exercise 8 Linear Regression. General Regression

Outline. Third Programming Project Two-Dimensional Arrays. Files You Can Download. Exercise 8 Linear Regression. General Regression Project 3 Two-densonal arras Ma 9, 6 Thrd Prograng Project Two-Densonal Arras Larr Caretto Coputer Scence 6 Coputng n Engneerng and Scence Ma 9, 6 Outlne Quz three on Thursda for full lab perod See saple

More information

Solutions to Programming Assignment Five Interpolation and Numerical Differentiation

Solutions to Programming Assignment Five Interpolation and Numerical Differentiation College of Engneerng and Coputer Scence Mechancal Engneerng Departent Mechancal Engneerng 309 Nuercal Analyss of Engneerng Systes Sprng 04 Nuber: 537 Instructor: Larry Caretto Solutons to Prograng Assgnent

More information

Matrices and Systems of Equations

Matrices and Systems of Equations Mtrices Mtrices nd Sstems of Equtions A mtri is rectngulr rr of rel numbers. CHAT Pre-Clculus Section 8. m m m............ n n n mn We will use the double subscript nottion for ech element of the mtri.

More information

EXPONENTIAL & POWER GRAPHS

EXPONENTIAL & POWER GRAPHS Eponentil & Power Grphs EXPONENTIAL & POWER GRAPHS www.mthletics.com.u Eponentil EXPONENTIAL & Power & Grphs POWER GRAPHS These re grphs which result from equtions tht re not liner or qudrtic. The eponentil

More information

MTH 146 Conics Supplement

MTH 146 Conics Supplement 105- Review of Conics MTH 146 Conics Supplement In this section we review conics If ou ne more detils thn re present in the notes, r through section 105 of the ook Definition: A prol is the set of points

More information

Unit 5 Vocabulary. A function is a special relationship where each input has a single output.

Unit 5 Vocabulary. A function is a special relationship where each input has a single output. MODULE 3 Terms Definition Picture/Exmple/Nottion 1 Function Nottion Function nottion is n efficient nd effective wy to write functions of ll types. This nottion llows you to identify the input vlue with

More information

Section 3.1: Sequences and Series

Section 3.1: Sequences and Series Section.: Sequences d Series Sequences Let s strt out with the definition of sequence: sequence: ordered list of numbers, often with definite pttern Recll tht in set, order doesn t mtter so this is one

More information

Multidimensional Scaling ~ Cox & Cox

Multidimensional Scaling ~ Cox & Cox Multdmensonl Sclng ~ Co & Co 1. INTRODUCTION... 1. CONTACT DETAILS... 1 3. THE MENU PROGRAM... 1 4. DATA INPUT/PREPARATION... 1 5. DATA INPUT/PREPARATION PROGRAMS... 1 5.1. CONTINGENCY TABLE TO UNFOLDING

More information

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) Numbers nd Opertions, Algebr, nd Functions 45. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) In sequence of terms involving eponentil growth, which the testing service lso clls geometric

More information

Section 10.4 Hyperbolas

Section 10.4 Hyperbolas 66 Section 10.4 Hyperbols Objective : Definition of hyperbol & hyperbols centered t (0, 0). The third type of conic we will study is the hyperbol. It is defined in the sme mnner tht we defined the prbol

More information

Optimization Methods: Integer Programming Integer Linear Programming 1. Module 7 Lecture Notes 1. Integer Linear Programming

Optimization Methods: Integer Programming Integer Linear Programming 1. Module 7 Lecture Notes 1. Integer Linear Programming Optzaton Methods: Integer Prograng Integer Lnear Prograng Module Lecture Notes Integer Lnear Prograng Introducton In all the prevous lectures n lnear prograng dscussed so far, the desgn varables consdered

More information

Chapter Spline Method of Interpolation More Examples Computer Engineering

Chapter Spline Method of Interpolation More Examples Computer Engineering Chpter. Splne Metho of Interpolton More Emples Computer Engneerng Emple A root rm wth rp lser snner s ong quk qulty hek on holes rlle n " " retngulr plte. The enters of the holes n the plte esre the pth

More information

Data Types. Tour of C. Like Java, Like C. Array Initialization. Array Declaration. Data Types, Arrays, Strings and Pointers in C.

Data Types. Tour of C. Like Java, Like C. Array Initialization. Array Declaration. Data Types, Arrays, Strings and Pointers in C. Dt Tyes Tour of Dt Tyes, Arrys, Strngs nd Ponters n chr short nt long flot double long double sgned/ unsgned chr, short, nt, long 2 Lke Jv, Lke Oertors sme s n Jv - Arthmetc nt = +; ++; --; *=2; +, -,

More information

1.4 Circuit Theorems

1.4 Circuit Theorems . Crcut Theorems. v,? (C)V, 5 6 (D) V, 6 5. A smple equvlent crcut of the termnl 6 v, network shown n fg. P.. s Fg. P... (A)V, (B)V, v (C)V,5 (D)V,5 Fg. P....,? 5 V, v (A) (B) Fg. P... (A)A, 0 (B) 0 A,

More information

World Journal of Engineering Research and Technology WJERT

World Journal of Engineering Research and Technology WJERT wjert 207 Vol. 3 Issue 5 284-293. Orgnl Artcle IN 2454-695X World Journl of ngneerng Reserch nd Technology hndrmouleeswrn et l. World Journl of ngneerng Reserch nd Technology WJRT www.wjert.org JIF Impct

More information

8.2 Areas in the Plane

8.2 Areas in the Plane 39 Chpter 8 Applictions of Definite Integrls 8. Ares in the Plne Wht ou will lern out... Are Between Curves Are Enclosed Intersecting Curves Boundries with Chnging Functions Integrting with Respect to

More information

Radiation & Matter 3: Refraction

Radiation & Matter 3: Refraction Rdition & Mtter 3: Refrction Refrction AIM The effects of refrction (the chnge of direction tht tkes plce when light psses fro ir into glss) y hve been et during n erlier study of Physics. The i of this

More information

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following.

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following. Complex Numbers The last topc n ths secton s not really related to most of what we ve done n ths chapter, although t s somewhat related to the radcals secton as we wll see. We also won t need the materal

More information

Procedures vs. Functions. Procedure Call. Syntax. Activation Record for Nested Blocks. Environment. CSE 3302 Programming Languages

Procedures vs. Functions. Procedure Call. Syntax. Activation Record for Nested Blocks. Environment. CSE 3302 Programming Languages -2-3 CSE 3302 Progrmmng Lnguges Control II Procedures nd Envronments Chengk L, Wemn He Sprng Procedures vs. Functons Functon: no sde effect return vlue Functon cll: epresson Procedure: sde effect, eecuted

More information

Chapter Spline Method of Interpolation More Examples Electrical Engineering

Chapter Spline Method of Interpolation More Examples Electrical Engineering Chpter. Spline Method of Interpoltion More Exmples Electricl Engineering Exmple Thermistors re used to mesure the temperture of bodies. Thermistors re bsed on mterils chnge in resistnce with temperture.

More information

Arrays as functions. Types. Multidimensional Arrays (row major, column major form) Java arrays

Arrays as functions. Types. Multidimensional Arrays (row major, column major form) Java arrays Louden Chpters 6,9 Types Dt Types nd Abstrct Dt Types 1 Arrys s functons f: U -> V (f U s ordnl type) f() rry C rrys types cn be wthout szes rry vrbles must hve fxed sze rry_mx( [], sze) // prmeters re

More information

Regionalization Method for Nonlinear Differential Equation Systems In a Cartesian Plan

Regionalization Method for Nonlinear Differential Equation Systems In a Cartesian Plan Journl of Mthemtcs nd Sttstcs 4: 464-468 6 ISSN 549-3644 6 Scence Pulctons Regonlzton Method for Nonlner Dfferentl Euton Systems In Crtesn Pln Bel Lekhmss Deprtment of Mthemtcs Fculty of Scences Unversty

More information

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties, Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

Essential Question What are some of the characteristics of the graph of a rational function?

Essential Question What are some of the characteristics of the graph of a rational function? 8. TEXAS ESSENTIAL KNOWLEDGE AND SKILLS A..A A..G A..H A..K Grphing Rtionl Functions Essentil Question Wht re some of the chrcteristics of the grph of rtionl function? The prent function for rtionl functions

More information

2 Computing all Intersections of a Set of Segments Line Segment Intersection

2 Computing all Intersections of a Set of Segments Line Segment Intersection 15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design

More information

Fall 2017 Midterm Exam 1 October 19, You may not use any books, notes, or electronic devices during this exam.

Fall 2017 Midterm Exam 1 October 19, You may not use any books, notes, or electronic devices during this exam. 15-112 Fll 2017 Midterm Exm 1 October 19, 2017 Nme: Andrew ID: Recittion Section: You my not use ny books, notes, or electronic devices during this exm. You my not sk questions bout the exm except for

More information

Solution of Linear Algebraic Equations using the Gauss-Jordan Method

Solution of Linear Algebraic Equations using the Gauss-Jordan Method Solution of Liner Algebric Equtions using the Guss-Jordn Method Populr pproch for solving liner equtions The Guss Jordn method depends on two properties of liner equtions: Scling one or more of ny of the

More information

Stained Glass Design. Teaching Goals:

Stained Glass Design. Teaching Goals: Stined Glss Design Time required 45-90 minutes Teching Gols: 1. Students pply grphic methods to design vrious shpes on the plne.. Students pply geometric trnsformtions of grphs of functions in order to

More information

The Reciprocal Function Family. Objectives To graph reciprocal functions To graph translations of reciprocal functions

The Reciprocal Function Family. Objectives To graph reciprocal functions To graph translations of reciprocal functions - The Reciprocl Function Fmil Objectives To grph reciprocl functions To grph trnsltions of reciprocl functions Content Stndrds F.BF.3 Identif the effect on the grph of replcing f () b f() k, kf(), f(k),

More information

Memory Management Functions

Memory Management Functions Meory Mngeent Functions Chpter 9 Meory Mngeent Process of binding vlues to eory loctions Vlues y be sttic or dynic Vlues re ssigned t different plces Sttic eory Run-tie stck Hep 1 Meory Mngeent Sttic Meory

More information

Introduction to Geometrical Optics - a 2D ray tracing Excel model for spherical mirrors - Part 2

Introduction to Geometrical Optics - a 2D ray tracing Excel model for spherical mirrors - Part 2 Introducton to Geometrcal Optcs - a D ra tracng Ecel model for sphercal mrrors - Part b George ungu - Ths s a tutoral eplanng the creaton of an eact D ra tracng model for both sphercal concave and sphercal

More information

News. Recap: While Loop Example. Reading. Recap: Do Loop Example. Recap: For Loop Example

News. Recap: While Loop Example. Reading. Recap: Do Loop Example. Recap: For Loop Example Unversty of Brtsh Columba CPSC, Intro to Computaton Jan-Apr Tamara Munzner News Assgnment correctons to ASCIIArtste.java posted defntely read WebCT bboards Arrays Lecture, Tue Feb based on sldes by Kurt

More information

9.1 apply the distance and midpoint formulas

9.1 apply the distance and midpoint formulas 9.1 pply the distnce nd midpoint formuls DISTANCE FORMULA MIDPOINT FORMULA To find the midpoint between two points x, y nd x y 1 1,, we Exmple 1: Find the distnce between the two points. Then, find the

More information

Introduction Transformation formulae Polar graphs Standard curves Polar equations Test GRAPHS INU0114/514 (MATHS 1)

Introduction Transformation formulae Polar graphs Standard curves Polar equations Test GRAPHS INU0114/514 (MATHS 1) POLAR EQUATIONS AND GRAPHS GEOMETRY INU4/54 (MATHS ) Dr Adrin Jnnett MIMA CMth FRAS Polr equtions nd grphs / 6 Adrin Jnnett Objectives The purpose of this presenttion is to cover the following topics:

More information

Mesh and Node Equations: Circuits Containing Dependent Sources

Mesh and Node Equations: Circuits Containing Dependent Sources Mesh nd Node Equtons: Crcuts Contnng Dependent Sources Introducton The crcuts n ths set of problems re smll crcuts tht contn sngle dependent source. These crcuts cn be nlyzed usng mesh equton or usng node

More information

Regular Ternary Algorithm for Scalar Multiplication. on Elliptic Curves over Finite Fields of Characteristic Three

Regular Ternary Algorithm for Scalar Multiplication. on Elliptic Curves over Finite Fields of Characteristic Three Regulr ernry lgorth for Sclr Multplcton on llptc Curves over nte elds of Chrcterstc hree Chol-Sun Sn nsttute of Mthetcs Stte cdey of Scences R ore bstrct: n ths pper we propose n effcent nd regulr ternry

More information

Functor (1A) Young Won Lim 10/5/17

Functor (1A) Young Won Lim 10/5/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

Algebra II Notes Unit Ten: Conic Sections

Algebra II Notes Unit Ten: Conic Sections Sllus Ojective: 0. The student will sketch the grph of conic section with centers either t or not t the origin. (PARABOLAS) Review: The Midpoint Formul The midpoint M of the line segment connecting the

More information

Answer Key Lesson 6: Workshop: Angles and Lines

Answer Key Lesson 6: Workshop: Angles and Lines nswer Key esson 6: tudent Guide ngles nd ines Questions 1 3 (G p. 406) 1. 120 ; 360 2. hey re the sme. 3. 360 Here re four different ptterns tht re used to mke quilts. Work with your group. se your Power

More information

Fall 2018 Midterm 2 November 15, 2018

Fall 2018 Midterm 2 November 15, 2018 Nme: 15-112 Fll 2018 Midterm 2 November 15, 2018 Andrew ID: Recittion Section: ˆ You my not use ny books, notes, extr pper, or electronic devices during this exm. There should be nothing on your desk or

More information

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012 Dynmic Progrmming Andres Klppenecker [prtilly bsed on slides by Prof. Welch] 1 Dynmic Progrmming Optiml substructure An optiml solution to the problem contins within it optiml solutions to subproblems.

More information

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications.

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications. 15-112 Fll 2018 Midterm 1 October 11, 2018 Nme: Andrew ID: Recittion Section: ˆ You my not use ny books, notes, extr pper, or electronic devices during this exm. There should be nothing on your desk or

More information

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork MA1008 Clculus nd Liner Algebr for Engineers Course Notes for Section B Stephen Wills Deprtment of Mthemtics University College Cork s.wills@ucc.ie http://euclid.ucc.ie/pges/stff/wills/teching/m1008/ma1008.html

More information

cisc1110 fall 2010 lecture VI.2 call by value function parameters another call by value example:

cisc1110 fall 2010 lecture VI.2 call by value function parameters another call by value example: cisc1110 fll 2010 lecture VI.2 cll y vlue function prmeters more on functions more on cll y vlue nd cll y reference pssing strings to functions returning strings from functions vrile scope glol vriles

More information

Pointers and Arrays. More Pointer Examples. Pointers CS 217

Pointers and Arrays. More Pointer Examples. Pointers CS 217 Pointers nd Arrs CS 21 1 2 Pointers More Pointer Emples Wht is pointer A vrile whose vlue is the ddress of nother vrile p is pointer to vrile v Opertions &: ddress of (reference) *: indirection (dereference)

More information

called the vertex. The line through the focus perpendicular to the directrix is called the axis of the parabola.

called the vertex. The line through the focus perpendicular to the directrix is called the axis of the parabola. Review of conic sections Conic sections re grphs of the form REVIEW OF CONIC SECTIONS prols ellipses hperols P(, ) F(, p) O p =_p REVIEW OF CONIC SECTIONS In this section we give geometric definitions

More information

CS201 Discussion 10 DRAWTREE + TRIES

CS201 Discussion 10 DRAWTREE + TRIES CS201 Discussion 10 DRAWTREE + TRIES DrwTree First instinct: recursion As very generic structure, we could tckle this problem s follows: drw(): Find the root drw(root) drw(root): Write the line for the

More information

Solutions to Math 41 Final Exam December 12, 2011

Solutions to Math 41 Final Exam December 12, 2011 Solutions to Mth Finl Em December,. ( points) Find ech of the following its, with justifiction. If there is n infinite it, then eplin whether it is or. ( ) / ln() () (5 points) First we compute the it:

More information

)

) Chpter Five /SOLUTIONS Since the speed ws between nd mph during this five minute period, the fuel efficienc during this period is between 5 mpg nd 8 mpg. So the fuel used during this period is between

More information

Stack. A list whose end points are pointed by top and bottom

Stack. A list whose end points are pointed by top and bottom 4. Stck Stck A list whose end points re pointed by top nd bottom Insertion nd deletion tke plce t the top (cf: Wht is the difference between Stck nd Arry?) Bottom is constnt, but top grows nd shrinks!

More information

CS 241. Fall 2017 Midterm Review Solutions. October 24, Bits and Bytes 1. 3 MIPS Assembler 6. 4 Regular Languages 7.

CS 241. Fall 2017 Midterm Review Solutions. October 24, Bits and Bytes 1. 3 MIPS Assembler 6. 4 Regular Languages 7. CS 241 Fll 2017 Midterm Review Solutions Octoer 24, 2017 Contents 1 Bits nd Bytes 1 2 MIPS Assemly Lnguge Progrmming 2 3 MIPS Assemler 6 4 Regulr Lnguges 7 5 Scnning 9 1 Bits nd Bytes 1. Give two s complement

More information

Support Vector Machines

Support Vector Machines /9/207 MIST.6060 Busness Intellgence and Data Mnng What are Support Vector Machnes? Support Vector Machnes Support Vector Machnes (SVMs) are supervsed learnng technques that analyze data and recognze patterns.

More information

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam.

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam. 15-112 Spring 2018 Midterm Exm 1 Mrch 1, 2018 Nme: Andrew ID: Recittion Section: You my not use ny books, notes, or electronic devices during this exm. You my not sk questions bout the exm except for lnguge

More information

Section 9.2 Hyperbolas

Section 9.2 Hyperbolas Section 9. Hperols 597 Section 9. Hperols In the lst section, we lerned tht plnets hve pproimtel ellipticl orits round the sun. When n oject like comet is moving quickl, it is le to escpe the grvittionl

More information

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers Mth Modeling Lecture 4: Lgrnge Multipliers Pge 4452 Mthemticl Modeling Lecture 4: Lgrnge Multipliers Lgrnge multipliers re high powered mthemticl technique to find the mximum nd minimum of multidimensionl

More information

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it. 6.3 Volumes Just s re is lwys positive, so is volume nd our ttitudes towrds finding it. Let s review how to find the volume of regulr geometric prism, tht is, 3-dimensionl oject with two regulr fces seprted

More information

Programming in Fortran 90 : 2017/2018

Programming in Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Exercse 1 : Evaluaton of functon dependng on nput Wrte a program who evaluate the functon f (x,y) for any two user specfed values

More information

Def : A radical is an expression consisting of a radical sign (radical symbol), a radicand, and an index.

Def : A radical is an expression consisting of a radical sign (radical symbol), a radicand, and an index. Mth 0 Uit : Roots & Powers Red Buildig O, Big Ides, d New Vocbulry, p. 0 tet.. Estitig Roots ( clss) Red Lesso Focus p. tet. Outcoes Ch. Notes. Defie d give eple of rdicl. pp. 0, 9. Idetify the ide d the

More information

9 Graph Cutting Procedures

9 Graph Cutting Procedures 9 Grph Cutting Procedures Lst clss we begn looking t how to embed rbitrry metrics into distributions of trees, nd proved the following theorem due to Brtl (1996): Theorem 9.1 (Brtl (1996)) Given metric

More information

12-B FRACTIONS AND DECIMALS

12-B FRACTIONS AND DECIMALS -B Frctions nd Decimls. () If ll four integers were negtive, their product would be positive, nd so could not equl one of them. If ll four integers were positive, their product would be much greter thn

More information

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have Rndom Numers nd Monte Crlo Methods Rndom Numer Methods The integrtion methods discussed so fr ll re sed upon mking polynomil pproximtions to the integrnd. Another clss of numericl methods relies upon using

More information

Intro. Iterators. 1. Access

Intro. Iterators. 1. Access Intro Ths mornng I d lke to talk a lttle bt about s and s. We wll start out wth smlartes and dfferences, then we wll see how to draw them n envronment dagrams, and we wll fnsh wth some examples. Happy

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Summer Review Packet For Algebra 2 CP/Honors

Summer Review Packet For Algebra 2 CP/Honors Summer Review Pcket For Alger CP/Honors Nme Current Course Mth Techer Introduction Alger uilds on topics studied from oth Alger nd Geometr. Certin topics re sufficientl involved tht the cll for some review

More information

Very sad code. Abstraction, List, & Cons. CS61A Lecture 7. Happier Code. Goals. Constructors. Constructors 6/29/2011. Selectors.

Very sad code. Abstraction, List, & Cons. CS61A Lecture 7. Happier Code. Goals. Constructors. Constructors 6/29/2011. Selectors. 6/9/ Abstrction, List, & Cons CS6A Lecture 7-6-9 Colleen Lewis Very sd code (define (totl hnd) (if (empty? hnd) (+ (butlst (lst hnd)) (totl (butlst hnd))))) STk> (totl (h c d)) 7 STk> (totl (h ks d)) ;;;EEEK!

More information

CSE 401 Midterm Exam 11/5/10 Sample Solution

CSE 401 Midterm Exam 11/5/10 Sample Solution Question 1. egulr expressions (20 points) In the Ad Progrmming lnguge n integer constnt contins one or more digits, but it my lso contin embedded underscores. Any underscores must be preceded nd followed

More information

Math 142, Exam 1 Information.

Math 142, Exam 1 Information. Mth 14, Exm 1 Informtion. 9/14/10, LC 41, 9:30-10:45. Exm 1 will be bsed on: Sections 7.1-7.5. The corresponding ssigned homework problems (see http://www.mth.sc.edu/ boyln/sccourses/14f10/14.html) At

More information

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe CSCI 104 Sortng Algorthms Mark Redekopp Davd Kempe Algorthm Effcency SORTING 2 Sortng If we have an unordered lst, sequental search becomes our only choce If we wll perform a lot of searches t may be benefcal

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Compilers. Chapter 4: Syntactic Analyser. 3 er course Spring Term. Precedence grammars. Precedence grammars

Compilers. Chapter 4: Syntactic Analyser. 3 er course Spring Term. Precedence grammars. Precedence grammars Complers Chpter 4: yntt Anlyser er ourse prng erm Prt 4g: mple Preedene Grmmrs Alfonso Orteg: lfonso.orteg@um.es nrque Alfonse: enrque.lfonse@um.es Introduton A preedene grmmr ses the nlyss n the preedene

More information

Midterm 2 Sample solution

Midterm 2 Sample solution Nme: Instructions Midterm 2 Smple solution CMSC 430 Introduction to Compilers Fll 2012 November 28, 2012 This exm contins 9 pges, including this one. Mke sure you hve ll the pges. Write your nme on the

More information

Rational Numbers---Adding Fractions With Like Denominators.

Rational Numbers---Adding Fractions With Like Denominators. Rtionl Numbers---Adding Frctions With Like Denomintors. A. In Words: To dd frctions with like denomintors, dd the numertors nd write the sum over the sme denomintor. B. In Symbols: For frctions c nd b

More information

6.3 Definite Integrals and Antiderivatives

6.3 Definite Integrals and Antiderivatives Section 6. Definite Integrls nd Antiderivtives 8 6. Definite Integrls nd Antiderivtives Wht ou will lern out... Properties of Definite Integrls Averge Vlue of Function Men Vlue Theorem for Definite Integrls

More information

10.5 Graphing Quadratic Functions

10.5 Graphing Quadratic Functions 0.5 Grphing Qudrtic Functions Now tht we cn solve qudrtic equtions, we wnt to lern how to grph the function ssocited with the qudrtic eqution. We cll this the qudrtic function. Grphs of Qudrtic Functions

More information

Functor (1A) Young Won Lim 8/2/17

Functor (1A) Young Won Lim 8/2/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012 Mth 464 Fll 2012 Notes on Mrginl nd Conditionl Densities klin@mth.rizon.edu October 18, 2012 Mrginl densities. Suppose you hve 3 continuous rndom vribles X, Y, nd Z, with joint density f(x,y,z. The mrginl

More information

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Parallelism for Nested Loops with Non-uniform and Flow Dependences Parallelsm for Nested Loops wth Non-unform and Flow Dependences Sam-Jn Jeong Dept. of Informaton & Communcaton Engneerng, Cheonan Unversty, 5, Anseo-dong, Cheonan, Chungnam, 330-80, Korea. seong@cheonan.ac.kr

More information

Introduction to Integration

Introduction to Integration Introduction to Integrtion Definite integrls of piecewise constnt functions A constnt function is function of the form Integrtion is two things t the sme time: A form of summtion. The opposite of differentition.

More information

1.1 Lines AP Calculus

1.1 Lines AP Calculus . Lines AP Clculus. LINES Notecrds from Section.: Rules for Rounding Round or Truncte ll finl nswers to 3 deciml plces. Do NOT round before ou rech our finl nswer. Much of Clculus focuses on the concept

More information

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of

More information

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1 Mth 33 Volume Stewrt 5.2 Geometry of integrls. In this section, we will lern how to compute volumes using integrls defined by slice nlysis. First, we recll from Clculus I how to compute res. Given the

More information

Fig.25: the Role of LEX

Fig.25: the Role of LEX The Lnguge for Specifying Lexicl Anlyzer We shll now study how to uild lexicl nlyzer from specifiction of tokens in the form of list of regulr expressions The discussion centers round the design of n existing

More information

COMP 423 lecture 11 Jan. 28, 2008

COMP 423 lecture 11 Jan. 28, 2008 COMP 423 lecture 11 Jn. 28, 2008 Up to now, we hve looked t how some symols in n lphet occur more frequently thn others nd how we cn sve its y using code such tht the codewords for more frequently occuring

More information

UNIT 11. Query Optimization

UNIT 11. Query Optimization UNIT Query Optimiztion Contents Introduction to Query Optimiztion 2 The Optimiztion Process: An Overview 3 Optimiztion in System R 4 Optimiztion in INGRES 5 Implementing the Join Opertors Wei-Png Yng,

More information

MATH 2530: WORKSHEET 7. x 2 y dz dy dx =

MATH 2530: WORKSHEET 7. x 2 y dz dy dx = MATH 253: WORKSHT 7 () Wrm-up: () Review: polr coordintes, integrls involving polr coordintes, triple Riemnn sums, triple integrls, the pplictions of triple integrls (especilly to volume), nd cylindricl

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

CHAPTER 3 BACKGROUND AND RELATED WORK

CHAPTER 3 BACKGROUND AND RELATED WORK CHAPTER 3 BACKGROUND AND RELATED WORK Ths chpter wll provde the ckground knowledge requred for the rest of ths thess. It wll strt wth the defnton of the nput sgnl functon nd termnology relted to the trngulton

More information

NUMB3RS Activity: Irregular Polygon Centroids. Episode: Burn Rate

NUMB3RS Activity: Irregular Polygon Centroids. Episode: Burn Rate Techer Pge 1 NUMB3RS Activit: Irregulr Polgon Centroids Topic: Geoetr, Points of Concurrenc Grde Level: 9-10 Ojective: Students will e le to find the centroid of irregulr polgons. Tie: 0 inutes Mterils:

More information

MIPS I/O and Interrupt

MIPS I/O and Interrupt MIPS I/O nd Interrupt Review Floting point instructions re crried out on seprte chip clled coprocessor 1 You hve to move dt to/from coprocessor 1 to do most common opertions such s printing, clling functions,

More information

Engineer To Engineer Note

Engineer To Engineer Note Engineer To Engineer Note EE-169 Technicl Notes on using Anlog Devices' DSP components nd development tools Contct our technicl support by phone: (800) ANALOG-D or e-mil: dsp.support@nlog.com Or visit

More information

EECS 281: Homework #4 Due: Thursday, October 7, 2004

EECS 281: Homework #4 Due: Thursday, October 7, 2004 EECS 28: Homework #4 Due: Thursdy, October 7, 24 Nme: Emil:. Convert the 24-bit number x44243 to mime bse64: QUJD First, set is to brek 8-bit blocks into 6-bit blocks, nd then convert: x44243 b b 6 2 9

More information

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics Introducton G10 NAG Fortran Lbrary Chapter Introducton G10 Smoothng n Statstcs Contents 1 Scope of the Chapter... 2 2 Background to the Problems... 2 2.1 Smoothng Methods... 2 2.2 Smoothng Splnes and Regresson

More information

MA 124 (Calculus II) Lecture 2: January 24, 2019 Section A3. Professor Jennifer Balakrishnan,

MA 124 (Calculus II) Lecture 2: January 24, 2019 Section A3. Professor Jennifer Balakrishnan, Wht is on tody Professor Jennifer Blkrishnn, jbl@bu.edu 1 Velocity nd net chnge 1 2 Regions between curves 3 1 Velocity nd net chnge Briggs-Cochrn-Gillett 6.1 pp. 398-46 Suppose you re driving long stright

More information

LU Decomposition Method Jamie Trahan, Autar Kaw, Kevin Martin University of South Florida United States of America

LU Decomposition Method Jamie Trahan, Autar Kaw, Kevin Martin University of South Florida United States of America nbm_sle_sm_ludecomp.nb 1 LU Decomposton Method Jame Trahan, Autar Kaw, Kevn Martn Unverst of South Florda Unted States of Amerca aw@eng.usf.edu nbm_sle_sm_ludecomp.nb 2 Introducton When solvng multple

More information

1 Quad-Edge Construction Operators

1 Quad-Edge Construction Operators CS48: Computer Grphics Hndout # Geometric Modeling Originl Hndout #5 Stnford University Tuesdy, 8 December 99 Originl Lecture #5: 9 November 99 Topics: Mnipultions with Qud-Edge Dt Structures Scribe: Mike

More information