Appendix B SIGNIFICANT FIGURES
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Significant Figures Instructor: J.T., P 1
CSUS – CH 6A Significant Figures Instructor: J.T., P 1 In Scientific calculation, there are two types of numbers: Exact numbers (1 dozen eggs = 12 eggs), (100 cm = 1 meter)... Inexact numbers: Arise form measurements. All measured numbers have an associated Uncertainty. (Where: The uncertainties drive from the instruments, human errors ...) Important to know: When reporting a measurement, so that it does not appear to be more accurate than the equipment used to make the measurement allows. The number of significant figures in a measurement: The number of digits that are known with some degree of confidence plus the last digit which is an estimate or approximation. 2.53 0.01 g 3 significant figures Precision: Is the degree to which repeated measurements under same conditions show the same results. Significant Figures: Number of digits in a figure that express the precision of a measurement. Significant Figures - Rules Significant figures give the reader an idea of how well you could actually measure/report your data. 1) ALL non-zero numbers (1, 2, 3, 4, 5, 6, 7, 8, 9) are ALWAYS significant. 2) ALL zeroes between non-zero numbers are ALWAYS significant. 3) ALL zeroes which are SIMULTANEOUSLY to the right of the decimal point AND at the end of the number are ALWAYS significant. 4) ALL zeroes which are to the left of a written decimal point and are in a number >= 10 are ALWAYS significant. CSUS – CH 6A Significant Figures Instructor: J.T., P 2 Example: Number # Significant Figures Rule(s) 48,923 5 1 3.967 4 1 900.06 5 1,2,4 0.0004 (= 4 E-4) 1 1,4 8.1000 5 1,3 501.040 6 1,2,3,4 3,000,000 (= 3 E+6) 1 1 10.0 (= 1.00 E+1) 3 1,3,4 Remember: 4 0.0004 4 10 CSUS – CH 6A Significant Figures Instructor: J.T., P 3 ADDITION AND SUBTRACTION: Count the Number of Decimal Places to determine the number of significant figures. -
RISC-V Bitmanip Extension Document Version 0.90
RISC-V Bitmanip Extension Document Version 0.90 Editor: Clifford Wolf Symbiotic GmbH [email protected] June 10, 2019 Contributors to all versions of the spec in alphabetical order (please contact editors to suggest corrections): Jacob Bachmeyer, Allen Baum, Alex Bradbury, Steven Braeger, Rogier Brussee, Michael Clark, Ken Dockser, Paul Donahue, Dennis Ferguson, Fabian Giesen, John Hauser, Robert Henry, Bruce Hoult, Po-wei Huang, Rex McCrary, Lee Moore, Jiˇr´ıMoravec, Samuel Neves, Markus Oberhumer, Nils Pipenbrinck, Xue Saw, Tommy Thorn, Andrew Waterman, Thomas Wicki, and Clifford Wolf. This document is released under a Creative Commons Attribution 4.0 International License. Contents 1 Introduction 1 1.1 ISA Extension Proposal Design Criteria . .1 1.2 B Extension Adoption Strategy . .2 1.3 Next steps . .2 2 RISC-V Bitmanip Extension 3 2.1 Basic bit manipulation instructions . .4 2.1.1 Count Leading/Trailing Zeros (clz, ctz)....................4 2.1.2 Count Bits Set (pcnt)...............................5 2.1.3 Logic-with-negate (andn, orn, xnor).......................5 2.1.4 Pack two XLEN/2 words in one register (pack).................6 2.1.5 Min/max instructions (min, max, minu, maxu)................7 2.1.6 Single-bit instructions (sbset, sbclr, sbinv, sbext)............8 2.1.7 Shift Ones (Left/Right) (slo, sloi, sro, sroi)...............9 2.2 Bit permutation instructions . 10 2.2.1 Rotate (Left/Right) (rol, ror, rori)..................... 10 2.2.2 Generalized Reverse (grev, grevi)....................... 11 2.2.3 Generalized Shuffleshfl ( , unshfl, shfli, unshfli).............. 14 2.3 Bit Extract/Deposit (bext, bdep)............................ 22 2.4 Carry-less multiply (clmul, clmulh, clmulr).................... -
Computer Architectures an Overview
Computer Architectures An Overview PDF generated using the open source mwlib toolkit. See http://code.pediapress.com/ for more information. PDF generated at: Sat, 25 Feb 2012 22:35:32 UTC Contents Articles Microarchitecture 1 x86 7 PowerPC 23 IBM POWER 33 MIPS architecture 39 SPARC 57 ARM architecture 65 DEC Alpha 80 AlphaStation 92 AlphaServer 95 Very long instruction word 103 Instruction-level parallelism 107 Explicitly parallel instruction computing 108 References Article Sources and Contributors 111 Image Sources, Licenses and Contributors 113 Article Licenses License 114 Microarchitecture 1 Microarchitecture In computer engineering, microarchitecture (sometimes abbreviated to µarch or uarch), also called computer organization, is the way a given instruction set architecture (ISA) is implemented on a processor. A given ISA may be implemented with different microarchitectures.[1] Implementations might vary due to different goals of a given design or due to shifts in technology.[2] Computer architecture is the combination of microarchitecture and instruction set design. Relation to instruction set architecture The ISA is roughly the same as the programming model of a processor as seen by an assembly language programmer or compiler writer. The ISA includes the execution model, processor registers, address and data formats among other things. The Intel Core microarchitecture microarchitecture includes the constituent parts of the processor and how these interconnect and interoperate to implement the ISA. The microarchitecture of a machine is usually represented as (more or less detailed) diagrams that describe the interconnections of the various microarchitectural elements of the machine, which may be everything from single gates and registers, to complete arithmetic logic units (ALU)s and even larger elements. -
About Significant Figures
About Significant Figures TABLE OF CONTENTS About Significant Figures................................................................................................... 1 What are SIGNIFICANT FIGURES? ............................................................................ 1 Introduction......................................................................................................................... 1 Introduction..................................................................................................................... 1 Rules of Significant Figures................................................................................................ 1 Determining the Number of Significant Figures ............................................................ 1 Significant Figures and Scientific Notations .................................................................. 2 Significant Figures in Calculations..................................................................................... 2 Significant Figures in Calculations................................................................................. 2 Addition and Subtraction ............................................................................................ 2 Multiplication and Division ........................................................................................ 3 Combining Operations................................................................................................ 3 Logarithms and Anti-Logarithms .............................................................................. -
International System of Measurements
Notes Chapter 2: Measurements and Calculations Scientific Notation It is used to easily and simply write very large numbers, and very small numbers. It begins with a number greater than zero & less than 10. In other words, one digit before the decimal point. This number is multiplied by an appropriate power of 10 Powers of 10 – positive exponents 0 5 10 = 1 10 = 100,000 1 6 10 = 10 10 = 1,000,000 2 7 10 = 100 10 = 10,000,000 3 8 10 = 1,000 10 = 100,000,000 4 9 10 = 10,000 10 = 1,000,000,000 Scientific notation of numbers greater than 1 2 136 = 1.36 x 10 4 15,000 = 1.5 x 10 4 10,200 = 1.02 x 10 8 105,000,000 = 1.05 x 10 Chemistry-1 Notes Chapter 2 Page 1 Page 1 Powers of 10 – negative exponents 0 -4 1 10 = 1 10 = 0.0001 = /10,000 -1 1 -5 1 10 = 0.1 = /10 10 = 0.00001 = /100,000 -2 1 -6 1 10 = 0.01 = /100 10 = 0.000001 = /1,000,000 -3 1 -7 10 = 0.001 10 = 0.0000001 = /1,000 1 = /10,000,000 Scientific notation of numbers less than 1 -1 0.136 = 1.36 x 10 -2 0.0560 = 5.6 x 10 -5 0.0000352 = 3.52 x 10 -6 0.00000105 = 1.05 x 10 To Review: Positive exponents tells you how many decimal places you must move the decimal point to the right to get to the real number. -
Floating Point Computation (Slides 1–123)
UNIVERSITY OF CAMBRIDGE Floating Point Computation (slides 1–123) A six-lecture course D J Greaves (thanks to Alan Mycroft) Computer Laboratory, University of Cambridge http://www.cl.cam.ac.uk/teaching/current/FPComp Lent 2010–11 Floating Point Computation 1 Lent 2010–11 A Few Cautionary Tales UNIVERSITY OF CAMBRIDGE The main enemy of this course is the simple phrase “the computer calculated it, so it must be right”. We’re happy to be wary for integer programs, e.g. having unit tests to check that sorting [5,1,3,2] gives [1,2,3,5], but then we suspend our belief for programs producing real-number values, especially if they implement a “mathematical formula”. Floating Point Computation 2 Lent 2010–11 Global Warming UNIVERSITY OF CAMBRIDGE Apocryphal story – Dr X has just produced a new climate modelling program. Interviewer: what does it predict? Dr X: Oh, the expected 2–4◦C rise in average temperatures by 2100. Interviewer: is your figure robust? ... Floating Point Computation 3 Lent 2010–11 Global Warming (2) UNIVERSITY OF CAMBRIDGE Apocryphal story – Dr X has just produced a new climate modelling program. Interviewer: what does it predict? Dr X: Oh, the expected 2–4◦C rise in average temperatures by 2100. Interviewer: is your figure robust? Dr X: Oh yes, indeed it gives results in the same range even if the input data is randomly permuted . We laugh, but let’s learn from this. Floating Point Computation 4 Lent 2010–11 Global Warming (3) UNIVERSITY OF What could cause this sort or error? CAMBRIDGE the wrong mathematical model of reality (most subject areas lack • models as precise and well-understood as Newtonian gravity) a parameterised model with parameters chosen to fit expected • results (‘over-fitting’) the model being very sensitive to input or parameter values • the discretisation of the continuous model for computation • the build-up or propagation of inaccuracies caused by the finite • precision of floating-point numbers plain old programming errors • We’ll only look at the last four, but don’t forget the first two. -
Avoiding Decimal Errors—November 2006
MEDICATION SAFETY Avoiding Decimal Errors umbers containing decimal points on computer generated labels. A newly admitted hospital are a major source of error and when patient told her physician that she took phenobarbital 400 misplaced, can lead to misinterpreta- mg three times daily. Subsequently, the physician wrote an tion of prescriptions. Decimal points order for the drug in the dose relayed by the patient. A nurse can be easily overlooked, especially saw the prescription vial and verified that this was the correct on prescriptions that have been faxed, dose. However, prior to dispensing, a hospital pharmacist prepared on lined order sheets or prescription investigated the unusually high dose. When he checked the Npads, or written or typed on carbon and no-car- prescription vial, he found that it was labeled as “PHENO- bon-required (NCR) forms. If a decimal point is BARBITAL 32.400MG TABLET” (see graphic). missed, an overdose may occur. The importance To avoid misinterpretations due to decimal point place- of proper decimal point placement and promi- ment, health care practitioners should consider the following: nence cannot be overstated. • Always include a leading zero for dosage strengths or A decimal point should always be preceded concentrations less than one. by a whole number and never be left “naked.” • Never follow a whole number with a decimal point and a Decimal expressions of numbers less than one zero or multiple zeroes (trailing zero). should always be preceded by a zero (0) to en- • Eliminate dangerous decimal dose expressions from hance the visibility of the decimal. For example, pharmacy and prescriber electronic order entry screens, computer-generated labels, and preprinted prescriptions. -
Safe Prescribing
Special issue PRESCRIBING THE ROLE OF SAFE PRESCRIBING IN THE PREVENTION OF MEDICATION ERRORS edications are the most common cause order is written, flag the patient’s chart and place it in the of adverse events in hospitalized rack by the clerical associate to ensure that the nurse and M patients.1,2 Adverse drug events (ADEs) the pharmacist are aware of the order. This process is occur during 6.5% of hospital admissions and 1% essential because the omission of medication of patients suffer disabling injuries as a result of an administration, usually first time doses, is the most ADE.1,2,3 Common causes of medication errors are frequently reported medication error type at Shands listed in Table 1.4 Because adverse Jacksonville. reactions to medications can be Obviously, no one group of serious or fatal, it is extremely " Preventing medication healthcare professionals is responsible for important that drug allergies and errors must be a multi- all errors. Therefore, preventing the reactions are documented. medication errors must be a multi- Additionally, medications can be disciplinary effort." disciplinary effort. For any further easily confused as a result of look- questions, please contact your liaison alike or sound-alike names and pharmacist or the Drug Information abbreviations (e.g., Toradol and tramadol, O.D. Service at 244-4185. can be interpreted as once daily or right eye, and (Continued on page 2) AZT could represent azathioprine or zidovudine). It is important that everyone utilize strategies to Table 1. Common Causes of Medication Errors decrease medication errors. Several tips for safe prescribing of medications are reviewed in Table 2 and should be incorporated into daily practice.4 • Ambiguous strength designation When writing orders for patients in the • Look-alike or sound-alike names or use of hospital, the same tips are useful. -
Significant Figures and Rounding
CHEM 101 – Significant Figures Significant Figures – The digits in a number that are certain plus one more (uncertain) digit. Someone tells you their salary is $55,000 per year, but it’s likely they don’t make exacty $55,000. They might make $54,755.35 or $56,324.15. So we say that number has only two significant figures. Note how the second 5 could be a 4 or a 6, but it is near 5. ZEROS AS SIGNIFICANT FIGURES Some zeros are zeros but some zeros are just place-holding zeros. These zeros are important, but they may not significant figures. Non-zeros – Always significant. Leading Zeros – Are not significant. Never. Examples: 0.005542 (4SF) three leading zeros not SF, last 4 digits are SF 0.154 (3SF) zero before the decimal is a leading zero and not SF, and the 3 following digits are SF 004445.0 (5SF) 2 unnecessary leading zeros are not SF, and all the following digits are SF (see Trailing Zeros below) “In-Between” Zeros – Are significant. Always. Examples: 3,045.3 (5SF) Zero is between non-zeros 0.00504 (3SF) Note: leading zeros not SF 1.0204 (5SF) Both zeros are in between non-zeros and thus SF 10.003 (5SF) All zeros here are in between thus SF Trailing Zeros – Depend on whether or not there is a decimal point. Examples: 0.0500 (3SF) Leading zeros not SF, and trailing zeros are SF because decimal point 6.0050 (5SF) The sole trailing zero is SF, along with the other digits 55,000 (2SF) Here is where the trailing zeros are not SF, as there is no decimal point. -
Exact Numbers
Rules for Significant Figures Counting significant figures: 1. Nonzero integers . Nonzero integers are always counted as significant. For example, in the number 1.36, there are three significant figures. 2. Zeros . There are three different classes of zeros: a) Leading zeros are zeros that precede all the nonzero digits. Leading; zeros are never counted as significant. For example, in the number 0.0017, there are two significant figures, the 1 and the 7. The zeros are not significant because they simply indicate the position of the decimal. b) Captive zeros are zeros that fall between nonzero digits. Captive zeros are always counted as significant. For example, in the number 1006, there are four significant figures. c) Trailing zeros are zeros at the right end of the number. Trailing zeros are only significant if the number contains a decimal point. For example, the number 200 has only one significant figure, while the number 200. has three, and the number 200.00 has five significant figures. 3. Exact numbers . If a number was obtained by counting: 5 pennies, 10 apples, 2 beakers, then the number is considered to be exact. Exact numbers have an infinite number of significant figures. If a number is part of a definition then the number is also exact. For example, I inch is defined as exactly 2.54 centimeters. Thus in the statement .1 in. = 2.54 cm, neither the 1 nor the 2.54 limits the number of significant figures when its used in a calculation. Rules for counting significant figures also apply to numbers written in scientific notation. -
Significant Figures
SIGNIFICANT FIGURES UMERICAL DATA that are used to record Specimen Tem rature Nobservations or solve problems are seldom exact. (oE103) The numbers are generally rounded off and, conse- quently, are estimates of some true value, and the mathematical operations or assumptions involved in the calculations commonly are approximations. In numerical computations, no more than the necessary number of digits should be used; to report results with too many or too few digits may be misleading. To avoid surplus digits, numbers should be rounded off at the point where the figures cease to have real A consistent procedure should be followed in round- meaning. Conversely, the number of significant fig- ing off numbers to n significant figures. All digits to ures may be unnecessarily reduced by choosing the the right of the nth digit should be discarded, as illus- less meaningful of several possible methods of calcula- trated in the following six examples of rounded num- tion. Careful consideration, therefore, should be given bers, each of which has only three significant figures: to the significant digits and arithmetic involved in each measurement. Example Original number- -Rounded number The number of significant figures resulting from 1 --. 0.32891 0.329 any calculation involving simple arithmetic operations 2 - ----- -- 47,543 47,500 3 -- ----- ------ ----..-- 11.65 11.6 on measured quantities should not exceed the number 4 -------- - --------. 22.75 22.8 of significant figures of the least precise number 5 ------- -- 18.05 18.0 6 ---------- - ---- 18.051 18.1 entering into the calculation. In the calculation itself, one more significant figure may be retained in the more precise numbers than exist in the least precise If the first of the discarded digits is greater than 5, number. -
Math 124 First Midterm Examination October1 1, 2010 NAME (Please
Math 124 First Midterm Examination October1 1, 2010 NAME (Please print) Page Points Score 2 20 3 20 4 20 5 20 6 20 Total 100 Instructions: 1. Do all computations on the examination paper. You may use the backs of the pages if necessary. 2. Put answers inside the boxes. 3. Please signify your adherence to the honor code: I, , have neither given nor received aid in completion of this examination. 1 (20 Points) Score 1. (6 points) How many numbers between 1 and 10,000 have exactly one digit equal to 5? Take any number from 0 to 999 not containing 5 ( 93 numbers ) and insert 5 in one of 4 positions. Alternatively, the number has either 1, 2, 3 or 4 digits. If one digit, there is one choice. If two digits, either the last digit is 5 and the first is neither 0 or 5, or the last digit is not 5 and the first is 5; so there are 8 + 9 = 17 choices. If three digits, either the last digit is 5 and the middle is not 5 and the first is not 0 or 5, or the middle digit is 5 and ...; there are 8×9+8×9+9×9 = 225 choices. If four digits, there are 8 × 9 × 9 + 8 × 9 × 9 + 8 × 9 × 9 + 9 × 9 × 9 = 2673 choices. answer = 2916 2. (7 points) What is the number of ways to order the 26 letters of the alphabet so that no two of the vowels a, e, i, o and u occur consecutively? (Hint: order the consonants, then place the vowels.) There are 21! ways to order the consonants.