Chapter 21. Arrays as Objects Array Parameters
|
|
- Noel Marcus Porter
- 7 years ago
- Views:
Transcription
1 253 Chpter 21 Arrys s Objects An rry is simply n object reference (see Section 20.1). As such, it cn be used like ny object reference; n rry cn be pssed s n ctul prmeter to method nd returned from method s return vlue. In the previous chpter we sw how ccess nd work with the elements within n rry. In this chpter we investigte how mnipulte n rry itself s whole Arry Prmeters Arry prmeters. An rry is specified s forml prmeter in method definition with the sme syntx s vrible declrtion: // Method f ccepts two rrys nd Boolen public int f(int[] numlist, double[] vector, flg) { /*... Detils omitted... */ Clling code simply psses the rry s it would ny vrible: int[] list = new int[100]; double[] v = new double[3]; /* Initilize list nd v (detils omitted) */ //... then cll f() list[3] = f(list, v, true); The following method sums the elements of n integer rry: public sttic int sumup(int[] ) { int sum = 0;
2 21.2. COPYING AN ARRAY 254 for ( int vlue : ) { sum += vlue; return sum; Since the method ccepts ny integer rry with no dditionl informtion bout its size, the number of elements in the rry must be determined from the rry s length ttribute. The for/ech sttement implicitly exmines the length field to iterte the correct number of times. The prmeter pssing mechnism for rry vribles works just like it does for other reference vribles. Suppose the supup() method is clled pssing n integer rry nmed list: int[] list; /* Allocte nd initilize list (detils omitted) */ // Disply the sum of ll the elements in list System.out.println(sumUp(list)); While in the supup() method, is n lis of list. This mens tht modifying within sumup() lso ffects list in the clling environment. It is not necessry to use nmed rry s n ctul prmeter. The following exmple mkes up n nonymous rry nd psses it to the sumup() method: // Disply the sum of ll the elements the nonymous rry specified here System.out.println(sumUp(new int[] { 10, 20, 30, 40, 50 )); 21.2 Copying n Arry It is importnt to note tht n rry is simply n object reference. It my seem plusible to mke copy of n rry s follows: int[], b; // Declre two rrys = new int[] { 10, 20, 30 ; // Crete one b = ; // Mke copy of rry? Since n rry is n object reference, nd since b hs been ssigned to, nd b refer to the sme rry. Arry b is n lis of, not copy of. Figure 21.1 illustrtes this rry lising. The following code cn be used to mke copy of : int[], b; // Declre two rrys = new int[] { 10, 20, 30 ; // Crete one // Relly mke copy of rry b = new int[.length]; // Allocte b for ( int i = 0; i <.length; i++ ) { b[i] = [i]; A new rry must be creted, nd then ech element is copied over into the new rry, s shown in Figure 21.2.
3 21.2. COPYING AN ARRAY 255 int[], b;? b? First, declre the rry vribles = new int[] { 10, 20, 30 ; b? Next, ssign to the newly creted rry b = ; b Finlly, nd b refer to the sme rry Figure 21.1: Arry lising Since copying n rry is such common ctivity, the jv.lng.system clss hs method nmed rrycopy() tht mkes it convenient to copy ll or prt of the elements of one rry to nother rry. It requires five prmeters: 1. The source rry; tht is, the rry from which the elements re to be copied 2. The strting index in the source rry from which the elements will be copied 3. The destintion rry; tht is, the rry into which the elements re to be copied 4. The strting index in the destintion rry into which the elements will be copied 5. The number of elements to be copied Notice tht this method is quite flexible. All or prt of n rry my be copied into nother rry. The simplest cse is complete copy, s in the exmple bove: int[], b; // Declre two rrys = new int[] { 10, 20, 30 ; // Crete one // Mke copy of rry b = new int[.length]; // Allocte b System.rrycopy(, 0, b, 0, b.length);
4 21.2. COPYING AN ARRAY 256 int[], b;? b? First, declre the rry vribles = new int[] { 10, 20, 30 ; b? Next, ssign to the newly creted rry b = new int[.length]; Then, crete new rry for vrible b b for ( int i = 0; i <.length; i++ ) { b[i] = [i]; Finlly, copy the contents of rry to rry b b Figure 21.2: Mking true copy of n rry In the following cse prt of one rry is copied into prt of nother rry: int[] = { 10, 20, 30, 40, 50, 60, 70, 80, 90 ; int[] b = { 11, 22, 33, 44, 55, 66, 77, 88, 99 ; System.rrycopy(b, 2,, 4, 3); After executing this code the contents of re: 10,20,30,40,33,44,55,80,90 The System.rrycopy() method is implemented in such wy to be more efficient thn equivlent code written in the Jv lnguge. Tble 21.1 shows the results of five runs of ArryCopyBenchmrk ( 21.1) on n rry of 5,000,000 elements. On verge, System.rrycopy() is only 2% fster thn the pure Jv copy code. public clss ArryCopyBenchmrk { public sttic void min( String [] rgs ) {
5 21.2. COPYING AN ARRAY 257 Run for rrycopy Percent Number Loop (msec) Speedup (msec) Averge Tble 21.1: Empiricl dt compring strightforwrd rry copy to System.rrycopy(). The rry size is 5,000,000. if ( rgs. length < 1 ) { System.out.println("Usge:"); System. out. println(" jv ArryCopyBenchmrk < size >"); System.exit (1); int size = Integer. prseint( rgs [0]); // Initilize the source rry with rndom vlues int [] src = new int[ size ]; jv.util.rndom rnd = new jv.util.rndom (); for ( int i = 0; i < size ; i ++ ) { src[i] = rnd.nextint(size ); int [] dest = new int[ size ]; Stopwtch timer = new Stopwtch (); // Copy rry by hnd timer.strt (); for ( int i = 0; i < size ; i ++ ) { dest[i] = src[i]; timer.stop (); System. out. println(" Elpsed time : " + timer. elpsed ()); // Copy rry using System. rrycopy () timer.strt (); System.rrycopy (src, 0, dest, 0, size ); timer.stop (); System. out. println(" Elpsed time : " + timer. elpsed ()); Listing 21.1: ArryCopyBenchmrk compres strightforwrd rry copy to System.rrycopy()
6 21.3. ARRAY RETURN VALUES Arry Return Vlues Arry return vlues. An rry cn be returned by method, s cn ny reference type. PrimesList ( 21.2) returns n rry of prime numbers over given rnge. import jv.util.scnner; public clss PrimesList { public sttic boolen isprime( int n) { boolen result = true ; // Assume no fctors unless we find one for ( int trilfctor = 2; trilfctor <= Mth. sqrt(n); trilfctor ++ ) { if ( n % trilfctor == 0 ) { // Is trilfctor fctor? result = flse; brek ; // No need to continue, we found fctor return result; // Returns list ( rry ) of primes in the rnge strt... stop public sttic int [] generteprimes ( int strt, int stop ) { // First, count how mny there re int vlue = strt ; // Smllest potentil prime number int count = 0; // Number of primes in the list while ( vlue <= stop ) { // See if vlue is prime if ( isprime(vlue ) ) { count ++; vlue ++; // Try the next potentil prime number // Next, crete n rry exctly the right size int [] result = new int[ count ]; // Next, populte the rry with the primes count = 0; vlue = strt ; // Smllest potentil prime number while ( vlue <= stop ) { // See if vlue is prime if ( isprime(vlue ) ) { result[ count ++] = vlue; vlue ++; // Try the next potentil prime number return result; public sttic void min( String [] rgs ) { int mxvlue ; Scnner scn = new Scnner( System. in); System. out. print(" Disply primes up to wht vlue? "); int [] primes = generteprimes (2, scn. nextint ());
7 21.4. COMMAND LINE ARGUMENTS 259 for ( int p : primes ) { System.out.print(p + " "); System. out. println (); // Move cursor down to next line Listing 21.2: PrimesList Uses method to generte list (rry) of prime numbers over given rnge The generteprimes() method first counts the number of prime numbers so tht n rry of the proper size cn be llocted. Then it the repets the process gin filling in ech position of the newly llocted rry with prime number. Note tht the sttement result[count++] = vlue; uses the postincrement opertor; thus, the current vlue of count is used s the index, then count is incremented Commnd Line Arguments The min() method for n executble clss hs the generl structure: public sttic void min(string[] rgs) { /* Body goes here... */ The min() method specifies single prmeter n rry of strings. The identifier rgs my be replced with ny vlid identifier nme, but ll the other nmes (public, sttic, void, min, nd String) must pper s presented here. To this point we hve ignored this prmeter of min(), but now, rmed with the knowledge of rrys, we cn write even more flexible Jv progrms. The commnd line is the sequence of text user enters in commnd shell. On Unix/Linux system, the shell (typiclly bsh or csh) is the commnd shell; on Windows system, the DOS shell is commnd shell. The commnd to see the files nd subdirectories (subfolders) in the current directory (folder) is ls on Unix/Linux system, nd dir on Windows system. Both ls nd dir re considered simple commnd lines. Additionl informtion cn be provided to produce more complicted commnd lines. For exmple, ls -l
8 21.4. COMMAND LINE ARGUMENTS 260 on Unix/Linux system gives long listing providing extr informtion. The commnd line dir /w on Windows system provides wide listing of files. We sy tht -l is n rgument to ls nd /w is n rgument to dir. To execute the Jv progrm ArryAverge ( 20.3) from the commnd shell, the file ArryAverge.jv would first be compiled to produce the clss file ArryAverge.clss. The Jv interpreter (normlly nmed jv) would then be invoked s jv ArryAverge This is how Jv ppliction is typiclly executed from the commnd line. It is possible to pss dditionl informtion to Jv progrms using commnd line rguments. The commnd shell (OS) uses the string rry prmeter in the min() to pss commnd line rguments to Jv progrm. CmdLineAverge ( 21.3) ccepts the vlues to verge from the commnd line insted of hving the user enter them during the progrm execution. public clss CmdLineAverge { public sttic void min( String [] rgs ) { double sum = 0.0; // Get commnd line rguments nd compute their verge for ( String s : rgs ) { sum += Double. prsedouble (s); System.out.print("The verge of "); for ( int i = 0; i < rgs. length - 1; i ++ ) { System.out.print(rgs[i] + ", "); // No comm following lst element System.out.println(rgs[rgs.length - 1] + " is " + sum/rgs.length ); Listing 21.3: CmdLineAverge Averges vlues provided on the commnd line Issuing the commnd line jv CmdLineAverge yields the output
9 21.5. VARIABLE ARGUMENT LISTS 261 The verge of 9, 3.5, 0.2, 100, 15.3 is 25.6 Figure 21.3 shows the correspondence of commnd line rguments to the rgs rry elements. jv CmdLineAverge rgs[0] rgs[1] rgs[2] rgs[3] rgs[4] Figure 21.3: Correspondence of commnd line rguments to rgs rry elements It is importnt to note tht commnd line rguments re whitespce delimited nd ech rgument is presented to the JVM s String object. As shown in CmdLineAverge, if number is provided on the commnd line nd the rgument is to be processed s number by the Jv progrm, then the rgument must be converted from its string form to its numeric form. In CmdLineAverge, the Double.prseDouble() clss method is used to convert string rgument to double. At lst, ll spects of the declrtion of the min() method hve been reveled: public the min() method cn be invoked by methods outside the clss sttic no object need be creted to execute the min() method void min() returns no vlue min the nme of the method invoked when the JVM executes the clss String[] rgs min() ccepts n rry of String objects s prmeter; these strings correspond to commnd line rguments In IDEs developers typiclly run Jv progrm through menu item or hotkey. In these development environments, commnd line rguments re often specified in dilog box Vrible Argument Lists It is esy to write method tht dds two integers together nd returns their sum. So too, three integers, four integers, etc. up to some smll prcticl limit. Since Jv permits methods to be overloded, the tsk is esy, lthough time consuming. OverlodedSumOfInts ( 21.4) provides good strting point. public clss OverlodedSumOfInts { public sttic int sum( int, int b) { return + b; public sttic int sum( int, int b, int c) { return + b + c;
10 21.5. VARIABLE ARGUMENT LISTS 262 public sttic int sum( int, int b, int c, int d) { return + b + c + d; public sttic int sum( int, int b, int c, int d, int e) { return + b + c + d + e; //... Overlod s mny times s you like! Listing 21.4: OverlodedSumOfInts A simple clss to sum integers Wht if the number of integers to dd exceeds the number of prmeters in ny of our overloded methods? We could lwys use functionl composition, s in int totl = OverlodedSumOfInts.sum(OverlodedSumOfInts.sum(3, 4, -1, 18, 6), OverlodedSumOfInts.sum(2, 2, 10, -3)); but this cumbersome. We could use n rry nd write just one method, s is ArrySumOfInts ( 21.5). public clss ArrySumOfInts { public sttic int sum( int [] ) { int sum = 0; for ( int i : ) { sum += i; return sum; Listing 21.5: ArrySumOfInts A better clss to sum integers using n rry The rry version is extremely flexible, but it is more wkwrd for the client to use. Consider the code required to sum five selected integers: int totl = ArrySumOfInts.sum(new int[] { 3, 4, -1, 18, 6 ); The explicit rry cretion is necessry, but it sure would be convenient to just pss the integer rguments by themselves without the rry wrpper. Before Jv 5.0, the number of rguments ccepted by method ws fixed t compile time. A method declred with three forml prmeters ccepted only three ctul prmeters. As we hve seen, overloded methods provide dditionl flexibility, but even then the number of prmeters is fixed. Jv 5.0 provides feture clled vrrgs (the nme cn be trced to the C progrmming lnguge) tht llows method writers to leve the number of prmeters open. The syntx is illustrted in VrrgsSumOfInts ( 21.6).
11 21.5. VARIABLE ARGUMENT LISTS 263 public clss VrrgsSumOfInts { public sttic int sum( int... rgs ) { int sum = 0; for ( int i : rgs ) { sum += i; return sum; Listing 21.6: VrrgsSumOfInts A truly better clss to sum integers using vrrgs public clss VrrgTester { public sttic void min( String [] rgs ) { System.out.println(OverlodedSumOfInts.sum (3, 4, 5, 6)); System.out.println(ArrySumOfInts.sum(new int [] { 3, 4, 5, 6 )); System.out.println(VrrgsSumOfInts.sum (3, 4, 5, 6)); Listing 21.7: VrrgTester A truly better clss to sum integers using vrrgs Note tht the body of VrrgsSumOfInts is functionlly identicl to ArrySumOfInts; only the method signtures differ. The two methods work the sme wy they process n rry of ints. The new prmeter specifiction hs the following form: typenme... prmeternme where typenme is ny stndrd or progrmmer-defined type (primitive or reference), nd prmeternme is progrmmer chosen prmeter nme. The... signifies tht within the method body the prmeter is to be treted s n rry of the type specified. In our VrrgsSumOfInts exmple, the prmeter rgs is treted s n int rry. The... lso mens tht the client will send ny number of prmeters of the specified type. The compiler will generte code in the context of the cller tht cretes n rry to hold these rguments nd sends tht new rry off to the method to be processed. The client s view is now much simpler: int totl = VrrgsSumOfInts.sum(3, 4, -1, 18, 6); The cll to VrrgsSumOfInts.sum() now looks like cll to norml method tht ccepts five prmeters. Behind the scenes, however, n rry is involved, nd only one true prmeter is pssed. The VrrgsSumOfInts.sum() method ccepts ny number of int rguments, but wht if you need to ccept ny number of rguments of mixed types? The solution is to expect ny number of Objects, s in public sttic void process(object... objs) { /* Do something with prmeters... */
12 21.6. SUMMARY 264 Primitive types pssed by the cller will be utoboxed into the pproprite wrpper objects. Of course, if nonuniform types re pssed, the method body will be more tricky to write, since ny type could pper t ny plce in the prmeter list. As n exmple, the System.out.printf() method cn ccept ny number of ny types of prmeters following its formt string. Its signture is public PrintStrem printf(string formt, Object... rgs) The code within the body of printf() scns the control codes within the formt string to properly ccess the rry of Objects tht follow. Tht is why printf() cn fil with runtime error if the progrmmer is inconsistent with plcement of control codes nd rrngement of triling prmeters. As shown in System.out.printf(), norml prmeters cn be mixed with vrrgs. In order for the compiler to mke sense of the cll of such method, ll norml prmeters must precede the single vrrgs prmeter Summry Add summry items here Exercises
1.00/1.001 Introduction to Computers and Engineering Problem Solving Fall 2011 - Final Exam
1./1.1 Introduction to Computers nd Engineering Problem Solving Fll 211 - Finl Exm Nme: MIT Emil: TA: Section: You hve 3 hours to complete this exm. In ll questions, you should ssume tht ll necessry pckges
More informationVirtual Machine. Part II: Program Control. Building a Modern Computer From First Principles. www.nand2tetris.org
Virtul Mchine Prt II: Progrm Control Building Modern Computer From First Principles www.nnd2tetris.org Elements of Computing Systems, Nisn & Schocken, MIT Press, www.nnd2tetris.org, Chpter 8: Virtul Mchine,
More informationExample 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers.
2 Rtionl Numbers Integers such s 5 were importnt when solving the eqution x+5 = 0. In similr wy, frctions re importnt for solving equtions like 2x = 1. Wht bout equtions like 2x + 1 = 0? Equtions of this
More informationHomework 3 Solutions
CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.
More informationUse Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions.
Lerning Objectives Loci nd Conics Lesson 3: The Ellipse Level: Preclculus Time required: 120 minutes In this lesson, students will generlize their knowledge of the circle to the ellipse. The prmetric nd
More informationProtocol Analysis. 17-654/17-764 Analysis of Software Artifacts Kevin Bierhoff
Protocol Anlysis 17-654/17-764 Anlysis of Softwre Artifcts Kevin Bierhoff Tke-Awys Protocols define temporl ordering of events Cn often be cptured with stte mchines Protocol nlysis needs to py ttention
More informationAntiSpyware Enterprise Module 8.5
AntiSpywre Enterprise Module 8.5 Product Guide Aout the AntiSpywre Enterprise Module The McAfee AntiSpywre Enterprise Module 8.5 is n dd-on to the VirusScn Enterprise 8.5i product tht extends its ility
More informationRegular Sets and Expressions
Regulr Sets nd Expressions Finite utomt re importnt in science, mthemtics, nd engineering. Engineers like them ecuse they re super models for circuits (And, since the dvent of VLSI systems sometimes finite
More informationJava CUP. Java CUP Specifications. User Code Additions You may define Java code to be included within the generated parser:
Jv CUP Jv CUP is prser-genertion tool, similr to Ycc. CUP uilds Jv prser for LALR(1) grmmrs from production rules nd ssocited Jv code frgments. When prticulr production is recognized, its ssocited code
More informationObject Semantics. 6.170 Lecture 2
Object Semntics 6.170 Lecture 2 The objectives of this lecture re to: to help you become fmilir with the bsic runtime mechnism common to ll object-oriented lnguges (but with prticulr focus on Jv): vribles,
More informationBinary Representation of Numbers Autar Kaw
Binry Representtion of Numbers Autr Kw After reding this chpter, you should be ble to: 1. convert bse- rel number to its binry representtion,. convert binry number to n equivlent bse- number. In everydy
More informationPROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY
MAT 0630 INTERNET RESOURCES, REVIEW OF CONCEPTS AND COMMON MISTAKES PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY Contents 1. ACT Compss Prctice Tests 1 2. Common Mistkes 2 3. Distributive
More informationLINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES
LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES DAVID WEBB CONTENTS Liner trnsformtions 2 The representing mtrix of liner trnsformtion 3 3 An ppliction: reflections in the plne 6 4 The lgebr of
More information9 CONTINUOUS DISTRIBUTIONS
9 CONTINUOUS DISTIBUTIONS A rndom vrible whose vlue my fll nywhere in rnge of vlues is continuous rndom vrible nd will be ssocited with some continuous distribution. Continuous distributions re to discrete
More informationPolynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )
Polynomil Functions Polynomil functions in one vrible cn be written in expnded form s n n 1 n 2 2 f x = x + x + x + + x + x+ n n 1 n 2 2 1 0 Exmples of polynomils in expnded form re nd 3 8 7 4 = 5 4 +
More informationLecture 3 Gaussian Probability Distribution
Lecture 3 Gussin Probbility Distribution Introduction l Gussin probbility distribution is perhps the most used distribution in ll of science. u lso clled bell shped curve or norml distribution l Unlike
More informationTreatment Spring Late Summer Fall 0.10 5.56 3.85 0.61 6.97 3.01 1.91 3.01 2.13 2.99 5.33 2.50 1.06 3.53 6.10 Mean = 1.33 Mean = 4.88 Mean = 3.
The nlysis of vrince (ANOVA) Although the t-test is one of the most commonly used sttisticl hypothesis tests, it hs limittions. The mjor limittion is tht the t-test cn be used to compre the mens of only
More informationExperiment 6: Friction
Experiment 6: Friction In previous lbs we studied Newton s lws in n idel setting, tht is, one where friction nd ir resistnce were ignored. However, from our everydy experience with motion, we know tht
More informationNetwork Configuration Independence Mechanism
3GPP TSG SA WG3 Security S3#19 S3-010323 3-6 July, 2001 Newbury, UK Source: Title: Document for: AT&T Wireless Network Configurtion Independence Mechnism Approvl 1 Introduction During the lst S3 meeting
More informationMath 135 Circles and Completing the Square Examples
Mth 135 Circles nd Completing the Squre Exmples A perfect squre is number such tht = b 2 for some rel number b. Some exmples of perfect squres re 4 = 2 2, 16 = 4 2, 169 = 13 2. We wish to hve method for
More informationIntegration. 148 Chapter 7 Integration
48 Chpter 7 Integrtion 7 Integrtion t ech, by supposing tht during ech tenth of second the object is going t constnt speed Since the object initilly hs speed, we gin suppose it mintins this speed, but
More informationAlgebra Review. How well do you remember your algebra?
Algebr Review How well do you remember your lgebr? 1 The Order of Opertions Wht do we men when we write + 4? If we multiply we get 6 nd dding 4 gives 10. But, if we dd + 4 = 7 first, then multiply by then
More informationReasoning to Solve Equations and Inequalities
Lesson4 Resoning to Solve Equtions nd Inequlities In erlier work in this unit, you modeled situtions with severl vriles nd equtions. For exmple, suppose you were given usiness plns for concert showing
More informationOperations with Polynomials
38 Chpter P Prerequisites P.4 Opertions with Polynomils Wht you should lern: Write polynomils in stndrd form nd identify the leding coefficients nd degrees of polynomils Add nd subtrct polynomils Multiply
More informationBayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom
Byesin Updting with Continuous Priors Clss 3, 8.05, Spring 04 Jeremy Orloff nd Jonthn Bloom Lerning Gols. Understnd prmeterized fmily of distriutions s representing continuous rnge of hypotheses for the
More informationFactoring Polynomials
Fctoring Polynomils Some definitions (not necessrily ll for secondry school mthemtics): A polynomil is the sum of one or more terms, in which ech term consists of product of constnt nd one or more vribles
More informationVendor Rating for Service Desk Selection
Vendor Presented By DATE Using the scores of 0, 1, 2, or 3, plese rte the vendor's presenttion on how well they demonstrted the functionl requirements in the res below. Also consider how efficient nd functionl
More informationDlNBVRGH + Sickness Absence Monitoring Report. Executive of the Council. Purpose of report
DlNBVRGH + + THE CITY OF EDINBURGH COUNCIL Sickness Absence Monitoring Report Executive of the Council 8fh My 4 I.I...3 Purpose of report This report quntifies the mount of working time lost s result of
More informationRecognition Scheme Forensic Science Content Within Educational Programmes
Recognition Scheme Forensic Science Content Within Eductionl Progrmmes one Introduction The Chrtered Society of Forensic Sciences (CSoFS) hs been ccrediting the forensic content of full degree courses
More informationGraphs on Logarithmic and Semilogarithmic Paper
0CH_PHClter_TMSETE_ 3//00 :3 PM Pge Grphs on Logrithmic nd Semilogrithmic Pper OBJECTIVES When ou hve completed this chpter, ou should be ble to: Mke grphs on logrithmic nd semilogrithmic pper. Grph empiricl
More informationEngineer-to-Engineer Note
Engineer-to-Engineer Note EE-280 Technicl notes on using Anlog Devices DSPs, processors nd development tools Visit our Web resources http://www.nlog.com/ee-notes nd http://www.nlog.com/processors or e-mil
More informationAppendix D: Completing the Square and the Quadratic Formula. In Appendix A, two special cases of expanding brackets were considered:
Appendi D: Completing the Squre nd the Qudrtic Formul Fctoring qudrtic epressions such s: + 6 + 8 ws one of the topics introduced in Appendi C. Fctoring qudrtic epressions is useful skill tht cn help you
More informationNew Internet Radio Feature
XXXXX XXXXX XXXXX /XW-SMA3/XW-SMA4 New Internet Rdio Feture EN This wireless speker hs een designed to llow you to enjoy Pndor*/Internet Rdio. In order to ply Pndor/Internet Rdio, however, it my e necessry
More informationIntegration by Substitution
Integrtion by Substitution Dr. Philippe B. Lvl Kennesw Stte University August, 8 Abstrct This hndout contins mteril on very importnt integrtion method clled integrtion by substitution. Substitution is
More informationData replication in mobile computing
Technicl Report, My 2010 Dt repliction in mobile computing Bchelor s Thesis in Electricl Engineering Rodrigo Christovm Pmplon HALMSTAD UNIVERSITY, IDE SCHOOL OF INFORMATION SCIENCE, COMPUTER AND ELECTRICAL
More informationVectors 2. 1. Recap of vectors
Vectors 2. Recp of vectors Vectors re directed line segments - they cn be represented in component form or by direction nd mgnitude. We cn use trigonometry nd Pythgors theorem to switch between the forms
More informationSection 5.2, Commands for Configuring ISDN Protocols. Section 5.3, Configuring ISDN Signaling. Section 5.4, Configuring ISDN LAPD and Call Control
Chpter 5 Configurtion of ISDN Protocols This chpter provides instructions for configuring the ISDN protocols in the SP201 for signling conversion. Use the sections tht reflect the softwre you re configuring.
More informationHillsborough Township Public Schools Mathematics Department Computer Programming 1
Essentil Unit 1 Introduction to Progrmming Pcing: 15 dys Common Unit Test Wht re the ethicl implictions for ming in tody s world? There re ethicl responsibilities to consider when writing computer s. Citizenship,
More informationand thus, they are similar. If k = 3 then the Jordan form of both matrices is
Homework ssignment 11 Section 7. pp. 249-25 Exercise 1. Let N 1 nd N 2 be nilpotent mtrices over the field F. Prove tht N 1 nd N 2 re similr if nd only if they hve the sme miniml polynomil. Solution: If
More informationflex Regular Expressions and Lexical Scanning Regular Expressions and flex Examples on Alphabet A = {a,b} (Standard) Regular Expressions on Alphabet A
flex Regulr Expressions nd Lexicl Scnning Using flex to Build Scnner flex genertes lexicl scnners: progrms tht discover tokens. Tokens re the smllest meningful units of progrm (or other string). flex is
More informationCOMPONENTS: COMBINED LOADING
LECTURE COMPONENTS: COMBINED LOADING Third Edition A. J. Clrk School of Engineering Deprtment of Civil nd Environmentl Engineering 24 Chpter 8.4 by Dr. Ibrhim A. Asskkf SPRING 2003 ENES 220 Mechnics of
More informationHelicopter Theme and Variations
Helicopter Theme nd Vritions Or, Some Experimentl Designs Employing Pper Helicopters Some possible explntory vribles re: Who drops the helicopter The length of the rotor bldes The height from which the
More informationEcon 4721 Money and Banking Problem Set 2 Answer Key
Econ 472 Money nd Bnking Problem Set 2 Answer Key Problem (35 points) Consider n overlpping genertions model in which consumers live for two periods. The number of people born in ech genertion grows in
More informationSmall 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 informationWelch Allyn CardioPerfect Workstation Installation Guide
Welch Allyn CrdioPerfect Worksttion Instlltion Guide INSTALLING CARDIOPERFECT WORKSTATION SOFTWARE & ACCESSORIES ON A SINGLE PC For softwre version 1.6.5 or lter For network instlltion, plese refer to
More informationMATH 150 HOMEWORK 4 SOLUTIONS
MATH 150 HOMEWORK 4 SOLUTIONS Section 1.8 Show tht the product of two of the numbers 65 1000 8 2001 + 3 177, 79 1212 9 2399 + 2 2001, nd 24 4493 5 8192 + 7 1777 is nonnegtive. Is your proof constructive
More informationMorgan Stanley Ad Hoc Reporting Guide
spphire user guide Ferury 2015 Morgn Stnley Ad Hoc Reporting Guide An Overview For Spphire Users 1 Introduction The Ad Hoc Reporting tool is ville for your reporting needs outside of the Spphire stndrd
More informationOne Minute To Learn Programming: Finite Automata
Gret Theoreticl Ides In Computer Science Steven Rudich CS 15-251 Spring 2005 Lecture 9 Fe 8 2005 Crnegie Mellon University One Minute To Lern Progrmming: Finite Automt Let me tech you progrmming lnguge
More informationOr more simply put, when adding or subtracting quantities, their uncertainties add.
Propgtion of Uncertint through Mthemticl Opertions Since the untit of interest in n eperiment is rrel otined mesuring tht untit directl, we must understnd how error propgtes when mthemticl opertions re
More information5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one.
5.2. LINE INTEGRALS 265 5.2 Line Integrls 5.2.1 Introduction Let us quickly review the kind of integrls we hve studied so fr before we introduce new one. 1. Definite integrl. Given continuous rel-vlued
More informationEconomics Letters 65 (1999) 9 15. macroeconomists. a b, Ruth A. Judson, Ann L. Owen. Received 11 December 1998; accepted 12 May 1999
Economics Letters 65 (1999) 9 15 Estimting dynmic pnel dt models: guide for q mcroeconomists b, * Ruth A. Judson, Ann L. Owen Federl Reserve Bord of Governors, 0th & C Sts., N.W. Wshington, D.C. 0551,
More informationEasyMP Network Projection Operation Guide
EsyMP Network Projection Opertion Guide Contents 2 About EsyMP Network Projection Functions of EsyMP Network Projection... 5 Vrious Screen Trnsfer Functions... 5 Instlling the Softwre... 6 Softwre Requirements...6
More informationClearPeaks Customer Care Guide. Business as Usual (BaU) Services Peace of mind for your BI Investment
ClerPeks Customer Cre Guide Business s Usul (BU) Services Pece of mind for your BI Investment ClerPeks Customer Cre Business s Usul Services Tble of Contents 1. Overview...3 Benefits of Choosing ClerPeks
More information4.11 Inner Product Spaces
314 CHAPTER 4 Vector Spces 9. A mtrix of the form 0 0 b c 0 d 0 0 e 0 f g 0 h 0 cnnot be invertible. 10. A mtrix of the form bc d e f ghi such tht e bd = 0 cnnot be invertible. 4.11 Inner Product Spces
More informationLECTURE #05. Learning Objective. To describe the geometry in and around a unit cell in terms of directions and planes.
LECTURE #05 Chpter 3: Lttice Positions, Directions nd Plnes Lerning Objective To describe the geometr in nd round unit cell in terms of directions nd plnes. 1 Relevnt Reding for this Lecture... Pges 64-83.
More informationGFI MilArchiver 6 vs C2C Archive One Policy Mnger GFI Softwre www.gfi.com GFI MilArchiver 6 vs C2C Archive One Policy Mnger GFI MilArchiver 6 C2C Archive One Policy Mnger Who we re Generl fetures Supports
More informationA.7.1 Trigonometric interpretation of dot product... 324. A.7.2 Geometric interpretation of dot product... 324
A P P E N D I X A Vectors CONTENTS A.1 Scling vector................................................ 321 A.2 Unit or Direction vectors...................................... 321 A.3 Vector ddition.................................................
More informationSection 5-4 Trigonometric Functions
5- Trigonometric Functions Section 5- Trigonometric Functions Definition of the Trigonometric Functions Clcultor Evlution of Trigonometric Functions Definition of the Trigonometric Functions Alternte Form
More informationAll pay auctions with certain and uncertain prizes a comment
CENTER FOR RESEARC IN ECONOMICS AND MANAGEMENT CREAM Publiction No. 1-2015 All py uctions with certin nd uncertin prizes comment Christin Riis All py uctions with certin nd uncertin prizes comment Christin
More informationBabylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity
Bbylonin Method of Computing the Squre Root: Justifictions Bsed on Fuzzy Techniques nd on Computtionl Complexity Olg Koshelev Deprtment of Mthemtics Eduction University of Texs t El Pso 500 W. University
More informationSmall 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 informationProject 6 Aircraft static stability and control
Project 6 Aircrft sttic stbility nd control The min objective of the project No. 6 is to compute the chrcteristics of the ircrft sttic stbility nd control chrcteristics in the pitch nd roll chnnel. The
More informationAREA OF A SURFACE OF REVOLUTION
AREA OF A SURFACE OF REVOLUTION h cut r πr h A surfce of revolution is formed when curve is rotted bout line. Such surfce is the lterl boundr of solid of revolution of the tpe discussed in Sections 7.
More informationRotating DC Motors Part II
Rotting Motors rt II II.1 Motor Equivlent Circuit The next step in our consiertion of motors is to evelop n equivlent circuit which cn be use to better unerstn motor opertion. The rmtures in rel motors
More informationBasically, logarithmic transformations ask, a number, to what power equals another number?
Wht i logrithm? To nwer thi, firt try to nwer the following: wht i x in thi eqution? 9 = 3 x wht i x in thi eqution? 8 = 2 x Biclly, logrithmic trnformtion k, number, to wht power equl nother number? In
More informationModule Summary Sheets. C3, Methods for Advanced Mathematics (Version B reference to new book) Topic 2: Natural Logarithms and Exponentials
MEI Mthemtics in Ection nd Instry Topic : Proof MEI Structured Mthemtics Mole Summry Sheets C, Methods for Anced Mthemtics (Version B reference to new book) Topic : Nturl Logrithms nd Eponentils Topic
More informationPre-Approval Application
Pre-Approvl Appliction In tody s rel estte mrket, Pre-Approved mortgge provides you the buyer with powerful tool in the home purchse process! Once you hve received your Pre-Approvl, you cn shop for your
More informationPhysics 43 Homework Set 9 Chapter 40 Key
Physics 43 Homework Set 9 Chpter 4 Key. The wve function for n electron tht is confined to x nm is. Find the normliztion constnt. b. Wht is the probbility of finding the electron in. nm-wide region t x
More informationEQUATIONS OF LINES AND PLANES
EQUATIONS OF LINES AND PLANES MATH 195, SECTION 59 (VIPUL NAIK) Corresponding mteril in the ook: Section 12.5. Wht students should definitely get: Prmetric eqution of line given in point-direction nd twopoint
More informationFUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation
FUNCTIONS AND EQUATIONS. SETS AND SUBSETS.. Definition of set. A set is ny collection of objects which re clled its elements. If x is n element of the set S, we sy tht x belongs to S nd write If y does
More informationLicense Manager Installation and Setup
The Network License (concurrent-user) version of e-dpp hs hrdwre key plugged to the computer running the License Mnger softwre. In the e-dpp terminology, this computer is clled the License Mnger Server.
More informationSmall 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 informationHow To Set Up A Network For Your Business
Why Network is n Essentil Productivity Tool for Any Smll Business TechAdvisory.org SME Reports sponsored by Effective technology is essentil for smll businesses looking to increse their productivity. Computer
More informationbody.allow-sidebar OR.no-sidebar.home-page (if this is the home page).has-custom-banner OR.nocustom-banner .IR OR.no-IR
body.llow-sidebr OR.no-sidebr.home-pge (if this is the home pge).hs-custom-bnner OR.nocustom-bnner.IR OR.no-IR #IDENTIFIER_FOR_THIS_SITE div#pge-continer.depends_on_page_ty PE llow-sidebr mens tht there
More informationGFI MilArchiver 6 vs Quest Softwre Archive Mnger GFI Softwre www.gfi.com GFI MilArchiver 6 vs Quest Softwre Archive Mnger GFI MilArchiver 6 Quest Softwre Archive Mnger Who we re Generl fetures Supports
More informationSmall 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 informationCS99S Laboratory 2 Preparation Copyright W. J. Dally 2001 October 1, 2001
CS99S Lortory 2 Preprtion Copyright W. J. Dlly 2 Octoer, 2 Ojectives:. Understnd the principle of sttic CMOS gte circuits 2. Build simple logic gtes from MOS trnsistors 3. Evlute these gtes to oserve logic
More informationLectures 8 and 9 1 Rectangular waveguides
1 Lectures 8 nd 9 1 Rectngulr wveguides y b x z Consider rectngulr wveguide with 0 < x b. There re two types of wves in hollow wveguide with only one conductor; Trnsverse electric wves
More informationSPECIAL PRODUCTS AND FACTORIZATION
MODULE - Specil Products nd Fctoriztion 4 SPECIAL PRODUCTS AND FACTORIZATION In n erlier lesson you hve lernt multipliction of lgebric epressions, prticulrly polynomils. In the study of lgebr, we come
More information6.2 Volumes of Revolution: The Disk Method
mth ppliction: volumes of revolution, prt ii Volumes of Revolution: The Disk Method One of the simplest pplictions of integrtion (Theorem ) nd the ccumultion process is to determine so-clled volumes of
More informationWarm-up for Differential Calculus
Summer Assignment Wrm-up for Differentil Clculus Who should complete this pcket? Students who hve completed Functions or Honors Functions nd will be tking Differentil Clculus in the fll of 015. Due Dte:
More informationSTATUS OF LAND-BASED WIND ENERGY DEVELOPMENT IN GERMANY
Yer STATUS OF LAND-BASED WIND ENERGY Deutsche WindGurd GmbH - Oldenburger Strße 65-26316 Vrel - Germny +49 (4451)/9515 - info@windgurd.de - www.windgurd.com Annul Added Cpcity [MW] Cumultive Cpcity [MW]
More informationMathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100
hsn.uk.net Higher Mthemtics UNIT 3 OUTCOME 1 Vectors Contents Vectors 18 1 Vectors nd Sclrs 18 Components 18 3 Mgnitude 130 4 Equl Vectors 131 5 Addition nd Subtrction of Vectors 13 6 Multipliction by
More informationWords Symbols Diagram. abcde. a + b + c + d + e
Logi Gtes nd Properties We will e using logil opertions to uild mhines tht n do rithmeti lultions. It s useful to think of these opertions s si omponents tht n e hooked together into omplex networks. To
More informationBasic Analysis of Autarky and Free Trade Models
Bsic Anlysis of Autrky nd Free Trde Models AUTARKY Autrky condition in prticulr commodity mrket refers to sitution in which country does not engge in ny trde in tht commodity with other countries. Consequently
More informationEngineer-to-Engineer Note
Engineer-to-Engineer Note EE-220 Technicl notes on using Anlog Devices DSPs, processors nd development tools Contct our technicl support t dsp.support@nlog.com nd t dsptools.support@nlog.com Or visit our
More informationg(y(a), y(b)) = o, B a y(a)+b b y(b)=c, Boundary Value Problems Lecture Notes to Accompany
Lecture Notes to Accompny Scientific Computing An Introductory Survey Second Edition by Michel T Heth Boundry Vlue Problems Side conditions prescribing solution or derivtive vlues t specified points required
More informationHow To Network A Smll Business
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 informationHealth insurance exchanges What to expect in 2014
Helth insurnce exchnges Wht to expect in 2014 33096CAEENABC 02/13 The bsics of exchnges As prt of the Affordble Cre Act (ACA or helth cre reform lw), strting in 2014 ALL Americns must hve minimum mount
More informationHealth insurance marketplace What to expect in 2014
Helth insurnce mrketplce Wht to expect in 2014 33096VAEENBVA 06/13 The bsics of the mrketplce As prt of the Affordble Cre Act (ACA or helth cre reform lw), strting in 2014 ALL Americns must hve minimum
More informationEngineer-to-Engineer Note
Engineer-to-Engineer Note EE-234 Technicl notes on using Anlog Devices DSPs, processors nd development tools Contct our technicl support t dsp.support@nlog.com nd t dsptools.support@nlog.com Or visit our
More informationReview guide for the final exam in Math 233
Review guide for the finl exm in Mth 33 1 Bsic mteril. This review includes the reminder of the mteril for mth 33. The finl exm will be cumultive exm with mny of the problems coming from the mteril covered
More informationDistributions. (corresponding to the cumulative distribution function for the discrete case).
Distributions Recll tht n integrble function f : R [,] such tht R f()d = is clled probbility density function (pdf). The distribution function for the pdf is given by F() = (corresponding to the cumultive
More information5 a LAN 6 a gateway 7 a modem
STARTER With the help of this digrm, try to descrie the function of these components of typicl network system: 1 file server 2 ridge 3 router 4 ckone 5 LAN 6 gtewy 7 modem Another Novell LAN Router Internet
More informationCypress Creek High School IB Physics SL/AP Physics B 2012 2013 MP2 Test 1 Newton s Laws. Name: SOLUTIONS Date: Period:
Nme: SOLUTIONS Dte: Period: Directions: Solve ny 5 problems. You my ttempt dditionl problems for extr credit. 1. Two blocks re sliding to the right cross horizontl surfce, s the drwing shows. In Cse A
More informationHow To Study The Effects Of Music Composition On Children
C-crcs Cognitive - Counselling Reserch & Conference Services (eissn: 2301-2358) Volume I Effects of Music Composition Intervention on Elementry School Children b M. Hogenes, B. Vn Oers, R. F. W. Diekstr,
More informationSmall Businesses Decisions to Offer Health Insurance to Employees
Smll Businesses Decisions to Offer Helth Insurnce to Employees Ctherine McLughlin nd Adm Swinurn, June 2014 Employer-sponsored helth insurnce (ESI) is the dominnt source of coverge for nonelderly dults
More informationSection 7-4 Translation of Axes
62 7 ADDITIONAL TOPICS IN ANALYTIC GEOMETRY Section 7-4 Trnsltion of Aes Trnsltion of Aes Stndrd Equtions of Trnslted Conics Grphing Equtions of the Form A 2 C 2 D E F 0 Finding Equtions of Conics In the
More informationAnthem Blue Cross Life and Health Insurance Company University of Southern California Custom Premier PPO 800/20%/20%
Anthem Blue Cross Life nd Helth Insurnce Compny University of Southern Cliforni Custom Premier 800/20%/20% Summry of Benefits nd Coverge: Wht this Pln Covers & Wht it Costs Coverge Period: 01/01/2015-12/31/2015
More informationChapter Outline How do atoms arrange themselves to form solids? Types of Solids
Chpter Outline How do toms rrnge themselves to form solids? Fundmentl concepts nd lnguge Unit cells Crystl structures Fce-centered cubic Body-centered cubic Hexgonl close-pcked Close pcked crystl structures
More information