Pascal Page 1
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Decimal Rounding
Mathematics Instructional Plan – Grade 5 Decimal Rounding Strand: Number and Number Sense Topic: Rounding decimals, through the thousandths, to the nearest whole number, tenth, or hundredth. Primary SOL: 5.1 The student, given a decimal through thousandths, will round to the nearest whole number, tenth, or hundredth. Materials Base-10 blocks Decimal Rounding activity sheet (attached) “Highest or Lowest” Game (attached) Open Number Lines activity sheet (attached) Ten-sided number generators with digits 0–9, or decks of cards Vocabulary approximate, between, closer to, decimal number, decimal point, hundredth, rounding, tenth, thousandth, whole Student/Teacher Actions: What should students be doing? What should teachers be doing? 1. Begin with a review of decimal place value: Display a decimal in the thousandths place, such as 34.726, using base-10 blocks. In pairs, have students discuss how to read the number using place-value names, and review the decimal place each digit holds. Briefly have students share their thoughts with the class by asking: What digit is in the tenths place? The hundredths place? The thousandths place? Who would like to share how to say this decimal using place value? 2. Ask, “If this were a monetary amount, $34.726, how would we determine the amount to the nearest cent?” Allow partners or small groups to discuss this question. It may be helpful if students underlined the place that indicates cents (the hundredths place) in order to keep track of the rounding place. Distribute the Open Number Lines activity sheet and display this number line on the board. Guide students to recall that the nearest cent is the same as the nearest hundredth of a dollar. -
A Concurrent PASCAL Compiler for Minicomputers
512 Appendix A DIFFERENCES BETWEEN UCSD'S PASCAL AND STANDARD PASCAL The PASCAL language used in this book contains most of the features described by K. Jensen and N. Wirth in PASCAL User Manual and Report, Springer Verlag, 1975. We refer to the PASCAL defined by Jensen and Wirth as "Standard" PASCAL, because of its widespread acceptance even though no international standard for the language has yet been established. The PASCAL used in this book has been implemented at University of California San Diego (UCSD) in a complete software system for use on a variety of small stand-alone microcomputers. This will be referred to as "UCSD PASCAL", which differs from the standard by a small number of omissions, a very small number of alterations, and several extensions. This appendix provides a very brief summary Of these differences. Only the PASCAL constructs used within this book will be mentioned herein. Documents are available from the author's group at UCSD describing UCSD PASCAL in detail. 1. CASE Statements Jensen & Wirth state that if there is no label equal to the value of the case statement selector, then the result of the case statement is undefined. UCSD PASCAL treats this situation by leaving the case statement normally with no action being taken. 2. Comments In UCSD PASCAL, a comment appears between the delimiting symbols "(*" and "*)". If the opening delimiter is followed immediately by a dollar sign, as in "(*$", then the remainder of the comment is treated as a directive to the compiler. The only compiler directive mentioned in this book is (*$G+*), which tells the compiler to allow the use of GOTO statements. -
Guide for the Use of the International System of Units (SI)
Guide for the Use of the International System of Units (SI) m kg s cd SI mol K A NIST Special Publication 811 2008 Edition Ambler Thompson and Barry N. Taylor NIST Special Publication 811 2008 Edition Guide for the Use of the International System of Units (SI) Ambler Thompson Technology Services and Barry N. Taylor Physics Laboratory National Institute of Standards and Technology Gaithersburg, MD 20899 (Supersedes NIST Special Publication 811, 1995 Edition, April 1995) March 2008 U.S. Department of Commerce Carlos M. Gutierrez, Secretary National Institute of Standards and Technology James M. Turner, Acting Director National Institute of Standards and Technology Special Publication 811, 2008 Edition (Supersedes NIST Special Publication 811, April 1995 Edition) Natl. Inst. Stand. Technol. Spec. Publ. 811, 2008 Ed., 85 pages (March 2008; 2nd printing November 2008) CODEN: NSPUE3 Note on 2nd printing: This 2nd printing dated November 2008 of NIST SP811 corrects a number of minor typographical errors present in the 1st printing dated March 2008. Guide for the Use of the International System of Units (SI) Preface The International System of Units, universally abbreviated SI (from the French Le Système International d’Unités), is the modern metric system of measurement. Long the dominant measurement system used in science, the SI is becoming the dominant measurement system used in international commerce. The Omnibus Trade and Competitiveness Act of August 1988 [Public Law (PL) 100-418] changed the name of the National Bureau of Standards (NBS) to the National Institute of Standards and Technology (NIST) and gave to NIST the added task of helping U.S. -
IEEE Standard 754 for Binary Floating-Point Arithmetic
Work in Progress: Lecture Notes on the Status of IEEE 754 October 1, 1997 3:36 am Lecture Notes on the Status of IEEE Standard 754 for Binary Floating-Point Arithmetic Prof. W. Kahan Elect. Eng. & Computer Science University of California Berkeley CA 94720-1776 Introduction: Twenty years ago anarchy threatened floating-point arithmetic. Over a dozen commercially significant arithmetics boasted diverse wordsizes, precisions, rounding procedures and over/underflow behaviors, and more were in the works. “Portable” software intended to reconcile that numerical diversity had become unbearably costly to develop. Thirteen years ago, when IEEE 754 became official, major microprocessor manufacturers had already adopted it despite the challenge it posed to implementors. With unprecedented altruism, hardware designers had risen to its challenge in the belief that they would ease and encourage a vast burgeoning of numerical software. They did succeed to a considerable extent. Anyway, rounding anomalies that preoccupied all of us in the 1970s afflict only CRAY X-MPs — J90s now. Now atrophy threatens features of IEEE 754 caught in a vicious circle: Those features lack support in programming languages and compilers, so those features are mishandled and/or practically unusable, so those features are little known and less in demand, and so those features lack support in programming languages and compilers. To help break that circle, those features are discussed in these notes under the following headings: Representable Numbers, Normal and Subnormal, Infinite -
Multidisciplinary Design Project Engineering Dictionary Version 0.0.2
Multidisciplinary Design Project Engineering Dictionary Version 0.0.2 February 15, 2006 . DRAFT Cambridge-MIT Institute Multidisciplinary Design Project This Dictionary/Glossary of Engineering terms has been compiled to compliment the work developed as part of the Multi-disciplinary Design Project (MDP), which is a programme to develop teaching material and kits to aid the running of mechtronics projects in Universities and Schools. The project is being carried out with support from the Cambridge-MIT Institute undergraduate teaching programe. For more information about the project please visit the MDP website at http://www-mdp.eng.cam.ac.uk or contact Dr. Peter Long Prof. Alex Slocum Cambridge University Engineering Department Massachusetts Institute of Technology Trumpington Street, 77 Massachusetts Ave. Cambridge. Cambridge MA 02139-4307 CB2 1PZ. USA e-mail: [email protected] e-mail: [email protected] tel: +44 (0) 1223 332779 tel: +1 617 253 0012 For information about the CMI initiative please see Cambridge-MIT Institute website :- http://www.cambridge-mit.org CMI CMI, University of Cambridge Massachusetts Institute of Technology 10 Miller’s Yard, 77 Massachusetts Ave. Mill Lane, Cambridge MA 02139-4307 Cambridge. CB2 1RQ. USA tel: +44 (0) 1223 327207 tel. +1 617 253 7732 fax: +44 (0) 1223 765891 fax. +1 617 258 8539 . DRAFT 2 CMI-MDP Programme 1 Introduction This dictionary/glossary has not been developed as a definative work but as a useful reference book for engi- neering students to search when looking for the meaning of a word/phrase. It has been compiled from a number of existing glossaries together with a number of local additions. -
Application Note to the Field Pumping Non-Newtonian Fluids with Liquiflo Gear Pumps
Pumping Non-Newtonian Fluids Application Note to the Field with Liquiflo Gear Pumps Application Note Number: 0104-2 Date: April 10, 2001; Revised Jan. 2016 Newtonian vs. non-Newtonian Fluids: Fluids fall into one of two categories: Newtonian or non-Newtonian. A Newtonian fluid has a constant viscosity at a particular temperature and pressure and is independent of shear rate. A non-Newtonian fluid has viscosity that varies with shear rate. The apparent viscosity is a measure of the resistance to flow of a non-Newtonian fluid at a given temperature, pressure and shear rate. Newton’s Law states that shear stress () is equal the dynamic viscosity () multiplied by the shear rate (): = . A fluid which obeys this relationship, where is constant, is called a Newtonian fluid. Therefore, for a Newtonian fluid, shear stress is directly proportional to shear rate. If however, varies as a function of shear rate, the fluid is non-Newtonian. In the SI system, the unit of shear stress is pascals (Pa = N/m2), the unit of shear rate is hertz or reciprocal seconds (Hz = 1/s), and the unit of dynamic viscosity is pascal-seconds (Pa-s). In the cgs system, the unit of shear stress is dynes per square centimeter (dyn/cm2), the unit of shear rate is again hertz or reciprocal seconds, and the unit of dynamic viscosity is poises (P = dyn-s-cm-2). To convert the viscosity units from one system to another, the following relationship is used: 1 cP = 1 mPa-s. Pump shaft speed is normally measured in RPM (rev/min). -
Variables and Calculations
¡ ¢ £ ¤ ¥ ¢ ¤ ¦ § ¨ © © § ¦ © § © ¦ £ £ © § ! 3 VARIABLES AND CALCULATIONS Now you’re ready to learn your first ele- ments of Python and start learning how to solve programming problems. Although programming languages have myriad features, the core parts of any programming language are the instructions that perform numerical calculations. In this chapter, we’ll explore how math is performed in Python programs and learn how to solve some prob- lems using only mathematical operations. ¡ ¢ £ ¤ ¥ ¢ ¤ ¦ § ¨ © © § ¦ © § © ¦ £ £ © § ! Sample Program Let’s start by looking at a very simple problem and its Python solution. PROBLEM: THE TOTAL COST OF TOOTHPASTE A store sells toothpaste at $1.76 per tube. Sales tax is 8 percent. For a user-specified number of tubes, display the cost of the toothpaste, showing the subtotal, sales tax, and total, including tax. First I’ll show you a program that solves this problem: toothpaste.py tube_count = int(input("How many tubes to buy: ")) toothpaste_cost = 1.76 subtotal = toothpaste_cost * tube_count sales_tax_rate = 0.08 sales_tax = subtotal * sales_tax_rate total = subtotal + sales_tax print("Toothpaste subtotal: $", subtotal, sep = "") print("Tax: $", sales_tax, sep = "") print("Total is $", total, " including tax.", sep = ") Parts of this program may make intuitive sense to you already; you know how you would answer the question using a calculator and a scratch pad, so you know that the program must be doing something similar. Over the next few pages, you’ll learn exactly what’s going on in these lines of code. For now, enter this program into your Python editor exactly as shown and save it with the required .py extension. Run the program several times with different responses to the question to verify that the program works. -
The Decibel Scale R.C
The Decibel Scale R.C. Maher Fall 2014 It is often convenient to compare two quantities in an audio system using a proportionality ratio. For example, if a linear amplifier produces 2 volts (V) output amplitude when its input amplitude is 100 millivolts (mV), the voltage gain is expressed as the ratio of output/input: 2V/100mV = 20. As long as the two quantities being compared have the same units--volts in this case--the proportionality ratio is dimensionless. If the proportionality ratios of interest end up being very large or very small, such as 2x105 and 2.5x10-4, manipulating and interpreting the results can become rather unwieldy. In this situation it can be helpful to compress the numerical range by taking the logarithm of the ratio. It is customary to use a base-10 logarithm for this purpose. For example, 5 log10(2x10 ) = 5 + log10(2) = 5.301 and -4 log10(2.5x10 ) = -4 + log10(2.5) = -3.602 If the quantities in the proportionality ratio both have the units of power (e.g., 2 watts), or intensity (watts/m ), then the base-10 logarithm log10(power1/power0) is expressed with the unit bel (symbol: B), in honor of Alexander Graham Bell (1847 -1922). The decibel is a unit representing one tenth (deci-) of a bel. Therefore, a figure reported in decibels is ten times the value reported in bels. The expression for a proportionality ratio expressed in decibel units (symbol dB) is: 10 푝표푤푒푟1 10 Common Usage 푑퐵 ≡ ∙ 푙표푔 �푝표푤푒푟0� The power dissipated in a resistance R ohms can be expressed as V2/R, where V is the voltage across the resistor. -
Introduction to the Python Language
Introduction to the Python language CS111 Computer Programming Department of Computer Science Wellesley College Python Intro Overview o Values: 10 (integer), 3.1415 (decimal number or float), 'wellesley' (text or string) o Types: numbers and text: int, float, str type(10) Knowing the type of a type('wellesley') value allows us to choose the right operator when o Operators: + - * / % = creating expressions. o Expressions: (they always produce a value as a result) len('abc') * 'abc' + 'def' o Built-in functions: max, min, len, int, float, str, round, print, input Python Intro 2 Concepts in this slide: Simple Expressions: numerical values, math operators, Python as calculator expressions. Input Output Expressions Values In [...] Out […] 1+2 3 3*4 12 3 * 4 12 # Spaces don't matter 3.4 * 5.67 19.278 # Floating point (decimal) operations 2 + 3 * 4 14 # Precedence: * binds more tightly than + (2 + 3) * 4 20 # Overriding precedence with parentheses 11 / 4 2.75 # Floating point (decimal) division 11 // 4 2 # Integer division 11 % 4 3 # Remainder 5 - 3.4 1.6 3.25 * 4 13.0 11.0 // 2 5.0 # output is float if at least one input is float 5 // 2.25 2.0 5 % 2.25 0.5 Python Intro 3 Concepts in this slide: Strings and concatenation string values, string operators, TypeError A string is just a sequence of characters that we write between a pair of double quotes or a pair of single quotes. Strings are usually displayed with single quotes. The same string value is created regardless of which quotes are used. -
Basic Vacuum Theory
MIDWEST TUNGSTEN Tips SERVICE BASIC VACUUM THEORY Published, now and again by MIDWEST TUNGSTEN SERVICE Vacuum means “emptiness” in Latin. It is defi ned as a space from which all air and other gases have been removed. This is an ideal condition. The perfect vacuum does not exist so far as we know. Even in the depths of outer space there is roughly one particle (atom or molecule) per cubic centimeter of space. Vacuum can be used in many different ways. It can be used as a force to hold things in place - suction cups. It can be used to move things, as vacuum cleaners, drinking straws, and siphons do. At one time, part of the train system of England was run using vacuum technology. The term “vacuum” is also used to describe pressures that are subatmospheric. These subatmospheric pressures range over 19 orders of magnitude. Vacuum Ranges Ultra high vacuum Very high High Medium Low _________________________|_________|_____________|__________________|____________ _ 10-16 10-14 10-12 10-10 10-8 10-6 10-4 10-3 10-2 10-1 1 10 102 103 (pressure in torr) There is air pressure, or atmospheric pressure, all around and within us. We use a barometer to measure this pressure. Torricelli built the fi rst mercury barometer in 1644. He chose the pressure exerted by one millimeter of mercury at 0ºC in the tube of the barometer to be his unit of measure. For many years millimeters of mercury (mmHg) have been used as a standard unit of pressure. One millimeter of mercury is known as one Torr in honor of Torricelli. -
Programming for Computations – Python
15 Svein Linge · Hans Petter Langtangen Programming for Computations – Python Editorial Board T. J.Barth M.Griebel D.E.Keyes R.M.Nieminen D.Roose T.Schlick Texts in Computational 15 Science and Engineering Editors Timothy J. Barth Michael Griebel David E. Keyes Risto M. Nieminen Dirk Roose Tamar Schlick More information about this series at http://www.springer.com/series/5151 Svein Linge Hans Petter Langtangen Programming for Computations – Python A Gentle Introduction to Numerical Simulations with Python Svein Linge Hans Petter Langtangen Department of Process, Energy and Simula Research Laboratory Environmental Technology Lysaker, Norway University College of Southeast Norway Porsgrunn, Norway On leave from: Department of Informatics University of Oslo Oslo, Norway ISSN 1611-0994 Texts in Computational Science and Engineering ISBN 978-3-319-32427-2 ISBN 978-3-319-32428-9 (eBook) DOI 10.1007/978-3-319-32428-9 Springer Heidelberg Dordrecht London New York Library of Congress Control Number: 2016945368 Mathematic Subject Classification (2010): 26-01, 34A05, 34A30, 34A34, 39-01, 40-01, 65D15, 65D25, 65D30, 68-01, 68N01, 68N19, 68N30, 70-01, 92D25, 97-04, 97U50 © The Editor(s) (if applicable) and the Author(s) 2016 This book is published open access. Open Access This book is distributed under the terms of the Creative Commons Attribution-Non- Commercial 4.0 International License (http://creativecommons.org/licenses/by-nc/4.0/), which permits any noncommercial use, duplication, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, a link is provided to the Creative Commons license and any changes made are indicated. -
CAR-ANS Part 5 Governing Units of Measurement to Be Used in Air and Ground Operations
CIVIL AVIATION REGULATIONS AIR NAVIGATION SERVICES Part 5 Governing UNITS OF MEASUREMENT TO BE USED IN AIR AND GROUND OPERATIONS CIVIL AVIATION AUTHORITY OF THE PHILIPPINES Old MIA Road, Pasay City1301 Metro Manila UNCOTROLLED COPY INTENTIONALLY LEFT BLANK UNCOTROLLED COPY CAR-ANS PART 5 Republic of the Philippines CIVIL AVIATION REGULATIONS AIR NAVIGATION SERVICES (CAR-ANS) Part 5 UNITS OF MEASUREMENTS TO BE USED IN AIR AND GROUND OPERATIONS 22 APRIL 2016 EFFECTIVITY Part 5 of the Civil Aviation Regulations-Air Navigation Services are issued under the authority of Republic Act 9497 and shall take effect upon approval of the Board of Directors of the CAAP. APPROVED BY: LT GEN WILLIAM K HOTCHKISS III AFP (RET) DATE Director General Civil Aviation Authority of the Philippines Issue 2 15-i 16 May 2016 UNCOTROLLED COPY CAR-ANS PART 5 FOREWORD This Civil Aviation Regulations-Air Navigation Services (CAR-ANS) Part 5 was formulated and issued by the Civil Aviation Authority of the Philippines (CAAP), prescribing the standards and recommended practices for units of measurements to be used in air and ground operations within the territory of the Republic of the Philippines. This Civil Aviation Regulations-Air Navigation Services (CAR-ANS) Part 5 was developed based on the Standards and Recommended Practices prescribed by the International Civil Aviation Organization (ICAO) as contained in Annex 5 which was first adopted by the council on 16 April 1948 pursuant to the provisions of Article 37 of the Convention of International Civil Aviation (Chicago 1944), and consequently became applicable on 1 January 1949. The provisions contained herein are issued by authority of the Director General of the Civil Aviation Authority of the Philippines and will be complied with by all concerned.