11 Pages

Lab+03

Course: EE 20N, Spring 2012
School: Berkeley
Rating:
 
 
 
 
 

Word Count: 3172

Document Preview

LECTRICAL MathScript E E NGINEERING 20N Department of Electrical Engineering and Computer Sciences University of California, Berkeley 3 S IMON H ONG , H SIN -I L IU , J ONATHAN K OTKER , H OWARD L EI , AND B ABAK AYAZIFAR 1 Introduction In this lab, we will explore MathScript, the text-based scripting language of LabVIEW. MathScript is a very powerful tool, and is useful in dealing with arrays and signals,...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> Berkeley >> EE 20N

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
LECTRICAL MathScript E E NGINEERING 20N Department of Electrical Engineering and Computer Sciences University of California, Berkeley 3 S IMON H ONG , H SIN -I L IU , J ONATHAN K OTKER , H OWARD L EI , AND B ABAK AYAZIFAR 1 Introduction In this lab, we will explore MathScript, the text-based scripting language of LabVIEW. MathScript is a very powerful tool, and is useful in dealing with arrays and signals, especially those not grounded in the time domain. MathScript involves text-based programming, which is in contrast to the graphical dataflow programming presented in the previous two lab sessions. As we work through this lab, we will find various advantages and disadvantages to both methods, but the same functionalities can usually be achieved in either method. Eventually, however, complex VIs involve a successful mix of both methods, and fortunately, MathScript code can be directly integrated into LabVIEW block diagrams through MathScript nodes. 1.1 Configuring your Local Machine Please make sure that you have installed MathScript on your local machine (not on the instructional machines). In order to install MathScript, insert your LabVIEW DVD and run the LabVIEW setup once again. In the Product List screen, select LabVIEW 2009 MathScriptRT Module for installation, and rerun the installation. 1.2 Lab Goals Explore the MathScript environment. Integrate MathScript code into block diagrams using MathScript nodes. Implement LabVIEW constructs in complex VIs. 1.3 Checkoff Points 2. MathScript Window Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(30 minutes) 1. Example VI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. Self-Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (10%) 3. Creating a MathScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (30 minutes) 1 1. Example VI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. Self-Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (10%) 4. MathScript Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (45 minutes) 1. Example VI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. Data Types of Output Terminals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. Self-Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (10%) 5. Miscellaneous Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (45 minutes, 20%) 6. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.1 Example VI MathScript Window Environment The following exercise will introduce you to the MathScript Window and its different components. 1. Open the LabVIEW MathScript Window by going into Tools MathScript Window from the LabVIEW environment. 2. Initialize an array from 1 to 10. (a) The MathScript Window includes a Command Window in the lower-left corner. Enter the following command in the Command Window and press the Enter key: t = 1:10 (b) Notice that the result of the command you entered appears in the Output Window, located just above the Command Window. The result of this command is a vector of ten elements, where the elements start at 1 and end at 10, with a step size of 1. For the arrays in MathScript, array positions begin at 1, whereas for the arrays created in LabVIEW, array positions begin at 0. This is a common cause of error. Also, notice the general structure of commands that declare arrays in LabVIEW: start value:step size:end value. If the third field is not specified, the step size is assumed to be 1 by default, and the second field is assumed to be the end value. 3. Examine the Variables tab and the Preview pane. (a) Locate the tabs labeled Variables, Script, and History at the top right of the LabVIEW MathScript Window. (b) Click the Variables tab to display the Variables page. This page displays a list of all variables you define and previews variables that you select. (c) Notice that the variable list contains an entry for the t vector you defined in step 2a. Click the t in the variable list to display the contents of t in the Preview Pane located in the lower right corner of the LabVIEW MathScript Window. You can also get a quick summary of all variables available, as well as their contents, by entering the whos command in the Command Window. 4. Generate one period of a sine wave. (a) Enter the following commands in the Command Window. Press the Enter key at the end of each line. 2 t = 0:0.1:2*pi; y = sin(t); (b) After you press the Enter key, LabVIEW displays each command in the Output Window. LabVIEW does not display the output for each command, because the semicolon at the end of each line directs LabVIEW to suppress the output. Not only does the semicolon suppress the output, it also speeds up processing, because output no longer has to be echoed to the screen. If you do need to show some output, be sure not to put a semicolon at the end of the line that produces the output. 5. Graph the variable y. (a) On the Variables page, click the local variable y. Then modify the view options on the Variables page to view the contents of the y variable as a graph or as numerical elements, as shown in Figure 1. You can also use these different views to modify the contents of the variable. Figure 1 Examining Variables on a Graph. 2.2 Self-Exercises 1. MathScript can handle element-wise computation of two vectors/arrays. The . (dot) operator, followed by a scalar operation of interest (such as *, /, and ^), will apply the operation pointwise. For instance, enter the following command into the Command Window and observe the result: array1 = [1 2 3 4].*[1 2 3 4] We can also multiply a scalar with a vector using the pointwise operator .*, in order to multiply the scalar with each element in the vector: array2 = 2.*[1 2 3 4] 3 Try initializing array1 with the same arrays that you initialized it with earlier, except using the .^ operator instead of the .* operator. What do you observe? 2. MathScript also has help documentation written up for most of its built-in commands. These can be accessed through the help command. For instance, determine the purpose of the length command by typing help length in the Command Window, and use it to find the length of array2 defined in step 1. 3. Using the MathScript Window, identify the dimensions of the result generated by each of the following commands using the size command, and determine if the result is a scalar, a row vector, a column vector, or a matrix. (a) (b) (c) (d) (e) (f) (g) array1 = 1 : 5 array2 = 1 : 1 : 5 array3 = 1 : -1 : -5 array4 = 1 : 1 : -5 array5 = [1 2 3 4 5] array6 = [1 2; 3 4] array7 = [1; 2; 3; 4] Should you want to completely eliminate a variable and start afresh, you can use the clear command. The clear command, followed by the name of the variable, will remove that variable from memory and further access. If the clear command is not provided with any arguments, it removes all variables, so be careful! 4. How is the size command different from the length command? 5. From step 1, we know that we can multiply two vectors pointwise, or a scalar with a vector, using the .* operator. In this exercise, we will examine what happens when the * operator is used instead. Enter the following commands and determine whether or not an error arises. If an error does not arise, explain the output. (a) (b) (c) (d) (e) a = 2 * 4 b = 2 * [1 2 3 4] c = [1 2 3 4] * [1 2 3 4] d = [1 2 3 4] * [1; 2; 3; 4] e = [1 2; 3 4; 5 6] * [1 2 3; 4 5 6] The last two are examples of matrix multiplication. 6. Generate an array that contains the values of the function y = sin2 (x) over the interval [0, 2], with a step size of 0.01. Use the help command, determine how the stem and plot commands work, and plot the function you just generated using both commands. Which is more useful for depicting discrete-time signals, and which is more useful for depicting continuous-time signals? 7. Initialize the array 1:1:10. Determine and explain the effects of the following commands: (a) array(2) (b) array(0) (c) array(11) 4 (d) array(11) = 2; array(11) array (e) array(15) = 8; array (f) array(length(array) + 1) = 9001; array 3 3.1 Example VI Creating a MathScript Oftentimes, we will not want to only run single MathScript commands. We would also like to be able to write whole chunks of commands, edit them as necessary, and then run them as one; this is called a script. The following exercise will demonstrate how to create a custom script in a .m file using the MathScript Window. 1. Open the LabVIEW MathScript Window by going into Tools MathScript Window from the LabVIEW environment. 2. Write a script that converts units of degrees into radians. (a) Click the Script tab to display the Script page. (b) Write the following script into the Script Editor on the Script page. Notice that the script includes percent signs (%) that indicate the line is a comment. Use these comments to include descriptive content for the script. Comments immediately after the function name will appear when you use the command help, followed by the name of the function. function deg = rad2deg(rad); % This is a comment. % This function converts from radians to degrees. deg = rad.*180./pi; 3. Save the script as rad2deg.m. (a) Click the Save button to save the function as rad2deg.m in the LabVIEW Data directory. Note that subsequent attempts to save the function can be done via Save in the File menu. By default, LabVIEW searches the LabVIEW Data directory for user-defined functions and userdefined scripts. (b) The user-defined function rad2deg is now available as a function you can call from MathScript other scripts. You can configure the default location where MathScript should search in order to find userdefined functions and user-defined scripts. In the MathScript Window, go to File LabVIEW MathScript Properties. Change the path, or add another path, under the MathScript: Search Paths tab. 4. In the Command Window, enter the following commands: (a) rad2deg(pi) Invokes the user-defined function you previously defined. (b) help rad2deg Returns the first commented paragraph as the help documentation for the user-defined function. 5 SCRIPT (c) rad2deg(linspace(0, pi, 10)) Invokes the user-defined function that you previously defined with a function call (linspace) as a parameter. What does the linspace function do? Refer to the Function Syntax and Calling User-Defined Functions sub-topics, under the MathScript topic in LabVIEW Help, for more information and help about working with userdefined functions. 3.2 Self-Exercises 1. Determine how the for and the if commands work, before proceeding with the exercises below. You may find that help command useful. 2. Write a script which sums up the elements of an input array and returns that sum. Assume no bound on the length of the array. Save the function as TotalArray.m. In order to return a value (be it a scalar or an array) from a script, your function will begin with the following line: function total = TotalArray(X); and you will store the final result in total in the script. You may not use the sum function. Note that if you use a MathScript function name as a variable later on in your script, the functionality of the function will be clobbered, and invoking the function name will only produce the value of the variable. To test your script, enter the following in the Command Window: X = [1 2 3 4 5 6 7 8 9 10]; Y = [1 -1 1 -1 1 -1 1 -1]; Z = [1]; XSum = TotalArray(X) YSum = TotalArray(Y) ZSum = TotalArray(Z) Note that you can copy and paste directly from this PDF document into MathScript. This should return three variables with the following content: XSum = 55 YSum = 0 ZSum = 1 3. Write a script which decimates an input array into one array of even indices and another of odd indices. Your script must take in a single array and output two decimated arrays. Save the function as DecimateArray.m. To test your script, enter the following in the Command Window: X = [3 1 4 1 5 9 2 6 5 3]; [evenArray, oddArray] = DecimateArray(X) This should return two arrays with the following content: evenArray = [1 1 9 6 3] oddArray = [3 4 5 2 5] You may find the mod function useful. You may also use the following template (you can copy and paste it): 6 function [evenArray, oddArray] = DecimateArray(array); % This function splits the input array into two % separate arrays, one containing the elements % at even indices, another containing the elements % at odd indices. % Initialize outputs to empty arrays. evenArray = []; oddArray = []; for % REPLACE THIS COMMENT WITH THE CORRECT ARGUMENTS if (% REPLACE THIS COMMENT WITH THE CORRECT ARGUMENT) % COMPLETE THE CONSEQUENT CASE OF THE IF-STATEMENT else % COMPLETE THE ALTERNATIVE CASE OF THE IF-STATEMENT end end 4 4.1 Example VI MathScript Nodes The following exercise will introduce you to using MathScript Nodes in a LabVIEW VI. These MathScript Nodes allow us to integrate MathScript code into the block diagram of a LabVIEW VI, allowing for block diagrams to become more compact and powerful. 1. Create a new LabVIEW VI called MathScript Node.vi. 2. Place a MathScript Node on the block diagram. (a) Right-click on the diagram and navigate to Programming Structures MathScript Node. Click and drag the mouse pointer to place a MathScript Node on the block diagram. 3. Add input and output terminals to the MathScript Node. (a) Right-click on the left border of the MathScript Node and select Add Input. Name the input x. Naming is performed by double clicking on the box that appears and typing in the desired name. (b) Right-click on the right border and select Add Output. Repeat this process to create three outputs labeled y, y1, and d. 4. In the MathScript Node, type the following expressions: y = x.^2; y1 = y(1); After this step, your block diagram should match that as shown in Figure 2. The labels of the terminals are black, because the terminals do not have data types assigned to them yet. 5. Create a control for the input terminal. On the front panel, place an array of numeric controls. Name the array x and wire it to the x input of the MathScript Node in the block diagram. In general, however, the name of the control in the block diagram does not have to match the name of the MathScript Node input. 7 Figure 2 MathScript Node with Terminals. 4.2 Data Types of Output Terminals Notice that, because the x input of the MathScript Node is connected to an array of doubles, the label is now orange, the same as the color of the wire feeding into the terminal. More importantly, notice that the MathScript Node has predicted that the data type of y will be an array of doubles, and that the data type of y1 will be a scalar double; as a result, it has made the labels of these output terminals orange as well. To confirm this, right-click on the terminal and select Choose Data Type. As shown in Figure 3, the current data type of the terminal will be preceded by an asterisk to denote that the data type was automatically determined. In general, MathScript Nodes assign an output terminal with the smallest data type that can hold the possible output values of the terminal. You can, of course, choose a different data type if the predicted data type is not the one required. This is another common cause of error in LabVIEW VIs and will definitely happen to you at least once: when specifying the outputs of a MathScript Node, ensure that each of them are of the correct data type. This will save you a lot of time and frustration. A good debugging tip is to notice the thickness of wires: as we learned in lab 02, a wire carrying an array is thicker than a wire carrying a scalar. Figure 3 Checking and Selecting Data Types for MathScript Node Terminals. 6. The output terminal d still has a black label, since it has not yet been used inside the MathScript Node. Append the following line to the code inside the MathScript Node: d = dot(x, y); Click outside the MathScript Node to refresh the data type of d. What is its data type now? 8 7. Place a While Loop with a Stop button around the MathScript Node and the controls. Be sure to include a Wait (ms) function inside the loop to conserve memory usage. 8. Create indicators for each of the outputs y, y1, and d. Determine the data types for each of the outputs by the commands in the Mathscript Node, and place indicators for these outputs on the front panel. Next, wire each Mathscript Node output to the appropriate indicator. Be sure to rightclick on each Mathscript Node output to make sure that the correct data type is selected. Your block diagram should resemble Figure 4. Figure 4 MathScript Node.vi Block Diagram. You can clean up the wires in your block diagram, by right-clicking on a wire and selecting Clean Up Wire. Alternatively, the key combination Ctrl-U cleans up all wires. 9. On the front panel, expand the arrays to show multiple elements. With the cursor, grab the bottom middle selector of the array and drag it down to show multiple elements. Figure 5 x Input Array Control on the Front Panel. 10. Begin by placing a 1, 2, 3, and 4 in the first four elements of the x control. Your front panel should look similar to the one in Figure 6. Note that the later elements in the array are grayed out. This is because they are not initialized. You can initialize them by clicking inside the cell and entering a value. To uninitialize a cell, right-click on the element and select Data Operations Delete Element. 11. Run the VI. Change the values of the elements in the array to see how the outputs change. 9 Figure 6 MathScript Node.vi Front Panel. 4.3 Self-Exercise Write a script which implements Previous Element Sum.vi from lab 02 using a MathScript Node. If done correctly, you will not need to use a For Loop structure, although the for command will prove very useful. Save the VI as Previous Element Sum MathScript.vi. Test your new VI and verify that it functions identically to Previous Element Sum.vi. 5 Miscellaneous Exercises Now that we have covered the basic concepts and structures of LabVIEW, we are now ready to tackle a few miscellaneous exercises. The objective of the exercises that follow is to determine which LabVIEW constructs from the past three labs will be best suited for the job, and how they are to be used, given the restrictions provided. 1. Implement a VI that separates the even and odd indexed elements of an array; a representative figure of the solution is shown in Figure 7. This is similar to the exercise presented in section 3. Save this VI as Array Decimation.vi. You have the following restrictions: (a) Do not use the Decimate 1D Array block. (b) Do not use MathScript Nodes. You may find the following hints useful: (a) Consider using the Build Array block and case structures. (b) Shift registers can carry arrays as well, besides constants. In this case, the initializers for the shift registers will not be constants, but will be empty arrays. (c) If you are still stuck, consider a similar problem, that of the Random Competition VI from lab 02. In that case, you added 1 to either competitor A or competitor B based on a condition. The process is similar here, only this time you will be appending array elements to either the Even Array or the Odd Array based on a particular condition. 10 Figure 7 Array Decimation.vi Front Panel. 2. Implement a VI that generates a random number between 0 and 1000 every 0.5 second and determines whether this number is odd or even. This VI should display the random number that is generated, the current iteration count, and two boolean indicators that declare the odd-even state of the number. A representative figure of the solution is shown in Figure 8. Save this VI as Odd Even.vi. Figure 8 Odd Even.vi Front Panel. 6 Acknowledgments Special thanks go out to the teaching assistants (TAs) of the Spring 2009 semester (Vinay Raj Hampapur, Miklos Christine, Sarah Wodin-Schwartz), of the Fall 2009 semester (David Carlton, Judy Hoffman, Mark Landry, Feng Pan, Changho Suh), and of the Spring 2010 semester (Xuan Fan, Brian Lambson, Kelvin So) for providing suggestions, ideas, and fixes to this lab guide. Portions of this lab guide were derived from material contained in the LabVIEW reference guides published by National Instruments. 11
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Berkeley - EE - 20N
D ISCRETE -T IME S YSTEMS AND C ONVOLUTIONElectrical Engineering 20N Department of Electrical Engineering and Computer Sciences University of California, Berkeley H SIN -I L IU , J ONATHAN K OTKER , H OWARD L EI ,AND4B ABAK AYAZIFAR1IntroductionIn
Berkeley - EE - 20N
F ILTERS AND F REQUENCY R ESPONSESElectrical Engineering 20N Department of Electrical Engineering and Computer Sciences University of California, Berkeley H SIN -I L IU , J ONATHAN K OTKER , H OWARD L EI ,AND5B ABAK AYAZIFAR1IntroductionIn this lab
Berkeley - EE - 20N
G UITARS , D RUMS , AND C OMB F ILTERSElectrical Engineering 20N Department of Electrical Engineering and Computer Sciences University of California, Berkeley6H SIN -I L IU , J ONATHAN K OTKER , A NDREW L EE , H OWARD L EI , AND B ABAK AYAZIFAR1Intro
Berkeley - CS - 70
CS70 Discrete Mathematics and Probability, Spring 2012Homework 1Out: Jan. 19; Due: Jan. 26Instructions: Start each problem on a new sheet. Write your name, section number and "CS70" on every sheet. If you use more than one sheet for a single problem, s
Berkeley - CS - 70
CS70 Discrete Mathematics for Computer Science, Spring 2012Homework 2Out: 26 Jan. Due: 5pm, 2 Feb.Instructions: Start each problem on a new sheet. Write your name, section number and "CS70" on every sheet. If you use more than one sheet for a problem,
Berkeley - CS - 70
CS70 Discrete Mathematics and Probability, Spring 2012Homework 3Out: 2 Feb. Due: 5pm, 9 Feb.Instructions: Start each problem on a new sheet. Write your name, section number and "CS70" on every sheet. If you use more than one sheet for a problem, staple
Berkeley - CS - 70
CS70 Discrete Mathematics for Computer Science, Spring 2012Homework 4Out: 9 Feb. Due: 5pm, 16 Feb.Instructions: Start each problem on a new sheet. Write your name, section number and "CS70" on every sheet. If you use more than one sheet for a problem,
Berkeley - CS - 70
CS70 Discrete Mathematics for Computer Science, Spring 2012Homework 5Out: 16 Feb. Due: 5pm, 23 Feb.Instructions: Start each problem on a new sheet. Write your name, section number and "CS70" on every sheet. If you use more than one sheet for a problem,
Berkeley - CS - 70
CS70 Discrete Mathematics for Computer Science, Spring 2012Homework 6Out: 1 March. Due: 5 pm, 8 March.Instructions: Start each problem on a new sheet. Write your name, section number and "CS70" on every sheet. If you use more than one sheet for a probl
Berkeley - CS - 70
CS70 Discrete Mathematics for Computer Science, Spring 2012Homework 7Out: 8 March. Due: 5pm, 15 March.Instructions: Start each problem on a new sheet. Write your name, section number and "CS70" on every sheet. If you use more than one sheet for a probl
Berkeley - CS - 70
CS 70 Spring 2012Discrete Mathematics and Probability Theory Alistair Sinclair Note 1Course OutlineCS70 is a course on "Discrete Mathematics and Probability for Computer Scientists." The purpose of the course is to teach you about: Fundamental ideas in
Berkeley - CS - 70
CS 70 Spring 2012 ProofsDiscrete Mathematics and Probability Theory Alistair Sinclair Note 2Intuitively, the concept of proof should already be familiar. We all like to assert things, and few of us like to say things that turn out to be false. A proof p
Berkeley - CS - 70
CS 70 Spring 2012 InductionDiscrete Mathematics and Probability Theory Alistair Sinclair Note 3Induction is an extremely powerful tool in mathematics. It is a way of proving propositions that hold for all natural numbers: 1) k N, 0 + 1 + 2 + 3 + + k =k
Berkeley - CS - 70
CS 70 Spring 2012Discrete Mathematics and Probability Theory Alistair Sinclair Note 4The Stable Marriage Problem: An Application of Proof Techniques to Analysis of AlgorithmsConsider a dating agency that must match up n men and n women. Each man has an
Berkeley - CS - 70
CS 70 Spring 2012Discrete Mathematics and Probability Theory Alistair Sinclair Note 5Modular ArithmeticOne way to think of modular arithmetic is that it limits numbers to a predefined range cfw_0, 1, . . . , N - 1, and wraps around whenever you try to
Berkeley - CS - 70
CS 70 Spring 2012Discrete Mathematics and Probability Theory Alistair Sinclair Note 6This note is partly based on Section 1.4 of "Algorithms," by S. Dasgupta, C. Papadimitriou and U. Vazirani, McGraw-Hill, 2007.Public Key CryptographyIn this note, we
Berkeley - CS - 70
CS 70 Spring 2012 PolynomialsDiscrete Mathematics and Probability Theory Alistair Sinclair Note 7Recall from your high school math that a polynomial in a single variable is of the form p(x) = ad xd + ad-1 xd-1 + . . . + a0 . Here the variable x and the
Berkeley - CS - 70
CS 70 Spring 2012Discrete Mathematics and Probability Theory Alistair Sinclair Note 8Error Correcting CodesErasure ErrorsWe will consider two situations in which we wish to transmit information on an unreliable channel. The first is exemplified by the
Berkeley - CS - 70
CS 70 Spring 2012Discrete Mathematics and Probability Theory Alistair Sinclair Note 9An Introduction to GraphsFormulating a simple, precise specification of a computational problem is often a prerequisite to writing a computer program for solving the p
Berkeley - CS - 70
CS 70 Spring 2012 CountingDiscrete Mathematics and Probability Theory Alistair Sinclair Note 10In the next major topic of the course, we will be looking at probability. Suppose you toss a fair coin a thousand times. How likely is it that you get exactly
Berkeley - CS - 70
CS 70 Spring 2012Discrete Mathematics and Probability Theory Alistair Sinclair Note 11Introduction to Discrete ProbabilityProbability theory has its origins in gambling - analyzing card games, dice, roulette wheels. Today it is an essential tool in eng
Berkeley - CS - 70
CS 70 Spring 2012Discrete Mathematics and Probability Theory Alistair Sinclair Note 12Conditional ProbabilityA pharmaceutical company is marketing a new test for a certain medical disorder. According to clinical trials, the test has the following prope
Berkeley - MATH - 54
Math 54, Spring 2012Fraydoun Rezakhanlou Homework from Linear Algebra and Its Applications, by Lay, third edition Homework set 1. Section 1.1: #6, Section 1.2: #2, Section 1.3: #6, Due Monday, January 23 10, 13, 16, 20, 28 11, 16, 23, 25 10, 11, 14, 18,
Berkeley - MATH - 54
Math 54, Spring 2012Fraydoun Rezakhanlou Homework from Fundamentals of Differential Equations and Boundary Value Problems, 4th edition, by Nagle, Saff and Snider Homework set 10. Due Monday, April 2 Section 4.2:#6, 10, 16, 28, 34 Section 4.3:#8, 16, 24,
Berkeley - MATH - 104
Math 104 Final Exam Solutions 1. (10 points) Are the following statements true or false? (a) If n n=0 cconverges, then so does n(-1)n n c . n=0 2nTrue. (b) If f : [0, 1] - R is differentiable, then f : [0, 1] - R is Riemann integrable. False. (for exa
Berkeley - PHYSICS - H7b
Physics H7B Prof. I. Siddiqi Spring 2012 Problem Set #1 Due in Class Tuesday 1/31/2012 #1. (a) The tube of a mercury thermometer has an inside diameter of 0.110 mm. The bulb has a volume of 0.190 cm3. How far will the thread of mercury move when the tempe
Berkeley - PHYSICS - H7b
H7B Spring 2012 Problem Set #2 Due in class by Tuesday, February 7, 2012 Problem 1: Giancoli 4th edition Ch 18 #56 Problem 2 Giancoli 4th edition Ch 18 #63 Problem 3: Giancoli 4th edition Ch 18 #67 Problem 4: Giancoli 4th edition Ch 18 #70 Problem 5: Gian
Berkeley - PHYSICS - H7b
H7B Problem Set #3 Due in class Tuesday 2/14/2012Problem #1: Giancoli Ch. 19 Problem 56 Problem #2: Giancoli Ch. 19 Problem 62 Problem #3: Giancoli Ch. 19 Problem 67 Problem #4: Giancoli Ch. 19 Problem 76 Problem #5: Giancoli Ch. 19 Problem 87 Problem #6
Berkeley - PHYSICS - H7b
Prof. I. Siddiqi H7B Spring 2012 Problem Set #5 Due: In Class Tuesday 3/13/12Problem #1: Purcell 1.5 Problem #2: Purcell 1.16 Problem #3: Purcell 1.19 Problem #4: Purcell 1.21 Problem #5: Purcell 1.32 Problem #6: Purcell 1.34
Berkeley - PHYSICS - H7b
PS# 4 H7B Spring 2012 Due in Class Tuesday 2/21/2012Problem #1 Giancoli Chapter 20 #7 Problem #2 Giancoli Chapter 20 #51 Problem #3 Giancoli Chapter 20 #52 Problem #4 Giancoli Chapter 20 #62 Problem #5 Giancoli Chapter 20 #63 Problem #6 Giancoli Chapter
Abilene Christian University - FINANCE - 20008
GLOBAL EDITIONMULTINATIONAL BUSINESS FINANCE12TH EDITIONDavid K.Arthur I.Michael H.EITEMANUniversity of California, Los AngelesSTONEHILLOregon State University and the University of Hawaii at ManoaMOFFETTThunderbird School of Global Management
University of South Pacific - ECONOMICS - 302
EC302: MICROECONOMIC ANALYSISSEMESTER 1 2012Worksheet 4 1. Three voters A, B and C will decide by majority rule whether to pass bills on issues X and Y. Each of the two issues will be voted on separately. The change in net benefits (in $) that would res
LSU - FINE - 101
CHAPTER 14 INTEREST RATE AND CURRENCY SWAPS SUGGESTED ANSWERS AND SOLUTIONS TO END-OF-CHAPTER QUESTIONS AND PROBLEMSQUESTIONS 1. Describe the difference between a swap broker and a swap dealer. Answer: A swap broker arranges a swap between two counterpar
LSU - FINE - 101
CHAPTER 11 INTERNATIONAL PORTFOLIO INVESTMENT SUGGESTED ANSWERS AND SOLUTIONS TO END-OF-CHAPTER QUESTIONS AND PROBLEMSQUESTIONS1.What factors are responsible for the recent surge in international portfolio investment?Answer: The recent surge in intern
LSU - FINE - 101
Review of Finance (2008) 12: 221251 doi: 10.1093/rof/rfl005 Advance Access publication: 31 January 2007Czech Mate: Expropriation and Investor Protection in a Converging WorldMIHIR A. DESAI1 and ALBERTO MOEL21 HarvardUniversity and NBER; 2 Monitor Grou
East Carolina - ITEC - 3290
East Carolina - ITEC - 3290
Allen Scott ITEC 3290 Graphics Discussion 2/11/2012 I searched the web to find an interesting graphic. Some were too elaborate, others too plain. I stumbled on an advertisement for Acoustifeet. Acoustifeet are a silicon rubber product that makes PCs and o
East Carolina - ITEC - 3290
Audience & Purpose determine everything about how you communicate on the job Understanding your audience and purpose helps you meet your readers needs During the writing process, you should always remember who your readers are, why they are reading your d
East Carolina - ITEC - 3290
Banner RegistrationGo to the ECU Home Page Select OneStop iconEnter your Pirate ID and PassphraseSelect Banner Self ServiceStep 1: Select Student and Financial AidStep 2: Select Registration to add or drop courses, look up class offerings, and see yo
East Carolina - ITEC - 3290
Memos Are moderately formal Usually written to others within your organization Writer has a lot of control over design and appearance Can be timeconsuming because they require paper, signatures, and have to be delivered via interoffice mail or in person
East Carolina - ITEC - 3290
1.An economic analysis of the relationship between proposed legislation affecting major employers in each state and the voting patterns of Senators and representatives in Congress on that legislation would fit within the subcategory of economics called:
East Carolina - ITEC - 3290
Homework 2 Econ 261, Principles of Microeconomics Instructor: A. Biswas Fall 2010 Due date: September 28, 2010 Homework submission policy: The homework is due at the beginning of due date's class (that is September 28, 2010) and late submission will not b
East Carolina - ITEC - 3290
Ch 5 - Revision QuestionsDL-S 06/11/091. If a small percentage increase in the price of a good greatly reduces the quantity demanded for that good, the demand for that good is: a. price inelastic b. price elastic c. unit price elastic d. income elastic
East Carolina - ITEC - 3290
ch3 AP MacroEcoFigure 3-9Uzbekistan's Production Possibilities Frontier100 90 80 70 60 50 40 30 20 10 5 10 15 20 25 30 35 40 45 50 bolts nailsAzerbaijan's Production Possibilities Frontier100 90 80 70 60 50 40 30 20 10 5 10 15 20 25 30 35 40 45 50 bo
East Carolina - ITEC - 3290
CHAPTER 31Public Choice Theory and the Economics of TaxationA. Short-Answer, Essays, and Problems1. What are the basic differences between public choice theory and the economics of taxation? 2. Why may majority voting produce economically inefficient o
East Carolina - ITEC - 3290
Chapter 6 Supply, Demand, and Government PoliciesMULTIPLE CHOICE 1. Price controls are a. used to make markets more efficient. b. usually enacted when policymakers believe that the market price of a good or service is unfair to buyers or sellers. c. near
East Carolina - ITEC - 3290
Chapter 7 Consumers, Producers, and the Efficiency of MarketsMULTIPLE CHOICE 1. Welfare economics is the study of a. the wellbeing of less fortunate people. b. welfare programs in the United States. c. the effect of income redistribution on work effort.
East Carolina - ITEC - 3290
Chapter 8 Applications: The Costs of TaxationMULTIPLE CHOICE 1. In 1776, the American Revolution was sparked by anger over a. the extravagant lifestyle of British royalty. b. the crimes of British soldiers stationed in the American Colonies. c. British t
East Carolina - ITEC - 3290
Chapter 10 ExternalitiesMULTIPLE CHOICE Which of the following is the best statement about markets? a. Markets are usually a good way to organize economic activity. b. Markets are generally inferior to central planning as a way to organize economic activ
East Carolina - ITEC - 3290
AP Economics Mankiw Chapter 10 Practice Test Directions: Mark T or F for the following statements. _ 1. A positive externality is an external benefit that accrues to the buyers in a market while a negative externality is an external cost that accrues to t
East Carolina - ITEC - 3290
Chapters 1-3 Drill w solutionMultiple Choice Identify the choice that best completes the statement or answers the question. _ 1. Which of the following is true? a. Efficiency refers to the size of the economic pie; equality refers to how the pie is divid
East Carolina - ITEC - 3290
Chpt 3 Gains from TradeTrue/False Indicate whether the statement is true or false. _ _ _ _ _ 1. A production possibilities frontier is a graph that shows the combination of outputs that an economy should produce. 2. Production possibilities frontiers can
East Carolina - ITEC - 3290
Business Letter Assignment 40 pointsFirst make sure to read the information in Chapter 14 on business letters. It is important that you understand the different formats and types of letters for this assignment. Once you have read chapter 14, choose one o
East Carolina - ITEC - 3290
East Carolina - ITEC - 3290
East Carolina - ITEC - 3290
Are fundamental to business communication Help readers understand concepts Often incorporate graphicsHelp readers understand what you mean by a word or phraseUsually provide a fuller picture of an object, a mechanism, or a process Give details about co
East Carolina - ITEC - 3290
East Carolina - ITEC - 3290
Are verbal and visual representations of objects, mechanisms, or processes They appear in virtually every kind of technical communicationAnalyze the audience Determine your purpose These will determine your vocabulary, sentence and paragraph structure an
East Carolina - ITEC - 3290
East Carolina - ITEC - 3290
To make a good impression To help readers understand the structure and hierarchy of the information To help readers find information within the document To help help readers understand the information To help readers remember the informationProximity gro
East Carolina - ITEC - 3290