hp calculators HP 9s Basic Arithmetic Practice Doing Arithmetic

Similar documents
Rev Name Date. . Round-off error is the answer to the question How wrong is the rounded answer?

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

TI-84+ GC 3: Order of Operations, Additional Parentheses, Roots and Absolute Value

Our Strategy for Learning Fortran 90

Chapter 3: Arithmetic for Computers

COMPUTER ARCHITECTURE AND ORGANIZATION. Operation Add Magnitudes Subtract Magnitudes (+A) + ( B) + (A B) (B A) + (A B)

1.1 Review of Place Value

Only to be used for arranged hours. Order of Operations

SAMLab Tip Sheet #1 Translating Mathematical Formulas Into Excel s Language

Calculations with Sig Figs

Chapter 03: Computer Arithmetic. Lesson 09: Arithmetic using floating point numbers

Note: The last command (10-5) will generate an error message. Can you see why the calculator is having difficulty deciphering the command?

Lesson 1: Arithmetic Review

Learning Log Title: CHAPTER 3: ARITHMETIC PROPERTIES. Date: Lesson: Chapter 3: Arithmetic Properties

COSC 243. Data Representation 3. Lecture 3 - Data Representation 3 1. COSC 243 (Computer Architecture)

CCBC Math 081 Order of Operations Section 1.7. Step 2: Exponents and Roots Simplify any numbers being raised to a power and any numbers under the

ME 461 C review Session Fall 2009 S. Keres

On a 64-bit CPU. Size/Range vary by CPU model and Word size.

Prefix/Infix/Postfix Notation

EXAMPLE 1. Change each of the following fractions into decimals.

Floating-point Arithmetic. where you sum up the integer to the left of the decimal point and the fraction to the right.

Signed Multiplication Multiply the positives Negate result if signs of operand are different

Math 171 Proficiency Packet on Integers

STACKS. A stack is defined in terms of its behavior. The common operations associated with a stack are as follows:

TI-30Xa/30Xa Solar, English

The Absolute Value Symbol

Will introduce various operators supported by C language Identify supported operations Present some of terms characterizing operators

TI-30Xa SOLAR School Edition

NATIONAL SEMICONDUCTOR 4650

CHW 261: Logic Design

Solving Equations with Inverse Operations

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */

Exponential Notation

hp calculators HP 30S Using Memories to Solve Problems The History Stack and the Last Answer Function The Memory Variables

Graphing Calculator Tutorial

Long (LONGMATH) variables may be used the same as short variables. The syntax is the same. A few limitations apply (see below).

Math Glossary Numbers and Arithmetic

1. NUMBER SYSTEMS USED IN COMPUTING: THE BINARY NUMBER SYSTEM

Course Schedule. CS 221 Computer Architecture. Week 3: Plan. I. Hexadecimals and Character Representations. Hexadecimal Representation

Any Integer Can Be Written as a Fraction

Mini-Lesson 1. Section 1.1: Order of Operations PEMDAS

2.2 Limit of a Function and Limit Laws

The simplest way to evaluate the expression is simply to start at the left and work your way across, keeping track of the total as you go:

ANSI C Programming Simple Programs

Chapter 4. Operations on Data

Week 2: Console I/O and Operators Arithmetic Operators. Integer Division. Arithmetic Operators. Gaddis: Chapter 3 (2.14,3.1-6,3.9-10,5.

unused unused unused unused unused unused

Exponents. Common Powers

Exponential Numbers ID1050 Quantitative & Qualitative Reasoning

C Programming

Lesson 1: Arithmetic Review

Module 2: Computer Arithmetic

ECE331: Hardware Organization and Design

Types and Expressions. Chapter 3

UNIT-III COMPUTER ARTHIMETIC

hp calculators HP 20b Using Memories to Solve Problems Constant memory and planning Memory registers Other memory locations

hp calculators HP 35s Using Algebraic Mode Calculation modes Functions of a single number in algebraic A simple example in algebraic

Digital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes

A. Incorrect! To simplify this expression you need to find the product of 7 and 4, not the sum.

ARITHMETIC EXPRESSION

Computer Organisation CS303

FLOATING POINT NUMBERS

hp calculators HP 35s Using Calculator Memories to Help Solve Problems Variables and Memory Registers Practice Examples: Storing and Using a Constant

Operations On Data CHAPTER 4. (Solutions to Odd-Numbered Problems) Review Questions

Properties and Definitions

Organisasi Sistem Komputer

1/31/2017. Expressions are Used to Perform Calculations. ECE 120: Introduction to Computing. Five Arithmetic Operators on Numeric Types

9/2/2016. Expressions are Used to Perform Calculations. ECE 120: Introduction to Computing. Five Arithmetic Operators on Numeric Types

Divide: Paper & Pencil

Is the statement sufficient? If both x and y are odd, is xy odd? 1) xy 2 < 0. Odds & Evens. Positives & Negatives. Answer: Yes, xy is odd

10 Using the PCFL Editor In this chapter

Arithmetic Logic Unit

Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions

Unit 3. Operators. School of Science and Technology INTRODUCTION

Department of Computer Science

Floating-Point Arithmetic

Inf2C - Computer Systems Lecture 2 Data Representation

Get to Know Your Calculator!

Think: 5 5 5, or 25. Think: Think: Evaluate Multiply. So, when s 2, the value of. 5(s 3) is 125. Then divide.

Chapter 5 : Computer Arithmetic

Supplemental Worksheet Problems To Accompany: The Pre-Algebra Tutor: Volume 2 Section 12 Variables and Expressions

Signed umbers. Sign/Magnitude otation

PRE-ALGEBRA BY MYRL SHIREMAN

Learning the Language - V

( 3) ( 4 ) 1. Exponents and Radicals ( ) ( xy) 1. MATH 102 College Algebra. still holds when m = n, we are led to the result

The benefits of understanding RPN stack operations. Understanding the HP12C RPN stack operation. Viewing and reordering stack-register contents

Measurements: Significant Figures

1.- DECIMAL PLACE VALUE: tenths, hundredths, thousandths. 1.1 Ordering decimals. 1.2 Rounding CALCULATIONS. 2.- ADDITION AND SUBTRACTION OF DECIMALS

9 Using Equation Networks

Basic Operations jgrasp debugger Writing Programs & Checkstyle

Lesson #3. Variables, Operators, and Expressions. 3. Variables, Operators and Expressions - Copyright Denis Hamelin - Ryerson University

MA 1128: Lecture 02 1/22/2018

ECE260: Fundamentals of Computer Engineering

Number Systems and Computer Arithmetic

Macro Programming Reference Guide. Copyright 2005 Scott Martinez

More complicated than addition. Let's look at 3 versions based on grade school algorithm (multiplicand) More time and more area

!"!!!"!!"!! = 10!!!!!(!!) = 10! = 1,000,000

Problem. Prove that the square of any whole number n is a multiple of 4 or one more than a multiple of 4.

A complex expression to evaluate we need to reduce it to a series of simple expressions. E.g * 7 =>2+ 35 => 37. E.g.

Place Value. Verbal Form: 30,542 = Thirty thousand, five hundred forty-two. (Notice we don t use the word and.)

Transcription:

Practice Doing Arithmetic

Practice doing arithmetic This learning module describes how to carry out simple arithmetic calculations on your HP 9s. Since the HP 9s uses the familiar algebraic entry system, you will not need to learn a new method: expressions involving the four basic arithmetic functions are entered in the same left-to-right order that you would write them on paper. We will work in the main operating mode (i.e. when none of the following annunciators is lit: CPLX, STAT, BIN, OCT, and HEX), also known as DEC mode. DEC is the default operating mode and where common math calculations are done. Basic arithmetic in Base-N mode (i.e. with numbers in HEX, BIN or OCT bases) is possible, as well as in STAT mode but the memory is not available in this mode. In CPLX mode the +, -, * and / keys expect complex numbers. All these modes are described in greater detail in their respective learning modules and in the HP 9s learning module Operating Modes and Display Format.. Simply press ~Ùto make sure you re in the proper mode to perform the examples below. In the following examples the default display format (floating point) is assumed. If you have changed this format, press these keys to restore the default mode: press U~p.. Display formats are also discussed in the HP 9s learning module Operating Modes and Display Format. To be sure your calculator displays the same results as shown below, press U now to clear any previous calculation. Example 1: Add 721.07 and 223.89 Press: 721.07+223.89\ The result appears as soon as \has been pressed. Answer: 944.96 Once the HP 9s has completed a calculation, the result can be used in another one. This is called a chain calculation: Example 2: Multiply the previous result by 5 *5\ Answer: 4724.8 Example 3: Calculate 750.34 36 25 This is a new calculation, but you need not press \first as we are not going to repeat any calculation (more on this later). Press: 750.34*36-25\ Note that you need not put 750.34 36 in parentheses because * and / take priority over + and -: when the - key was pressed, the partial result 750.34 36 was displayed, and the \key then performed the calculation (750.34 36) 25. - 2 - - Version 1.0

Answer: 26987.24 Example 4: Calculate 75 45 and 4.52 ( 7.1) To key in negative numbers the =key must be pressed after or while keying in the number, but before pressing the next function key. The first calculation can be done in several ways: 7=5*45\ or 75=*45\ But be warned that 75*=45\ won t produce the same result (it returns 3375 instead) because the Change Sign function (i.e. =) is cancelled by the * key. If you press = after a function key, you must press that function key again so that the sign is not lost: 75*=*45\. Likewise, to do the second calculation you can press either: 4.52*7=.1\ or 4.52*7.=1\ or 4.52*7.1=\ Answers: 3375 and 32.092 Results greater than 10 10 or less than 10 9 are displayed in scientific notation. To enter numbers in scientific notation, key in the mantissa (there is no need to enter it, if it is 1), press = if the mantissa is negative, press the A key, key in the exponent and finally press = if the exponent is negative. In fact, you can enter the sign of the exponent anytime after pressing the A key. Example 5: Calculate 1 000 000 2.75 A6/2.75\ Since the mantissa is 1, it can be omitted. Using the A key is simpler to work with than 1000000 and shorter than 6~i/2.75\. Answer: 363636.3636 Parentheses are important in specifying the order of operation. Without parentheses, the HP 9s calculates according to the order of algebraic precedence, that is: multiplications and divisions take priority over addition and subtraction. On the HP 9s parentheses are not needed to enclose the argument of one-argument functions, such as SIN(45), because they take their argument from the number currently being displayed: they are indeed postfix functions. Trailing parentheses that would be entered just before pressing \ can be omitted. Parentheses are entered by pressing the M and N keys. Up to 13 nested parentheses can be entered in a single calculation, even though the number of pending operations is limited to six. If the ( ) annunciator is not lit when pressing the M key, it may be because the last key pressed was not one of the following: U, J, \ or a two-argument function. - 3 - - Version 1.0

Example 6: Calculate (73 89) (523 + 34) M73-89N*M523+34N\ Answer: 8912 Note that the partial results (73 89) and (523 + 34) are displayed as soon as the parentheses are closed by pressing the N key. Note also that there s no implicit multiplication on the HP 9s, i.e. pressing the *key is mandatory. The first parenthesis is not necessary if the \key is pressed before *: 73-89\*M523+34N\ Also, the last closing parenthesis is not necessary either: 73-89\*M523+34\ The \key always performs all pending operations. Parentheses are also used for specifying the order in which operations with the same priority must be performed. Compare the following two examples. Example 7: Calculate 8 3 5 8/3/5\ Parentheses are not necessary in this case because as soon as the second /key is pressed, the pending operation 8/3 is done, as intended. Answer: 0.533333333 Example 8: Calculate 8 3 5 8/M3/5\ Answer: 13.33333333 One of the handy features of the HP 9s is that calculations can be repeated easily. Example 9: Find the first five multiples of e Finding the first n multiples of a number is very easy on the HP 9s. The number e is the base of the natural logarithms. You need not enter it, because it can be easily calculated as follows: - 4 - - Version 1.0

1~h This is actually the first multiple (e 1). To find the second, simply press: +\ The second multiple is returned. Note that no number was keyed in between the + and the \ keys. When +, -, * or /is followed by the \key, the first argument (i.e. the number displayed when the function key was pressed) is used as the second argument too. That is to say: (U) a \ is the same as (U) a a \ + + From now on, each press of \gives a multiple of e. So, press the \key three times to find the other three multiples. Answer: 2.718281828, 5.436563657, 8.154845485, 10.87312731, 13.59140914. Example 10: We can always add 1 by pressing two keys, but is there a way of counting by pressing a single button? Here s a simple yet useful counting technique. Press 1 and \. As simple as that. Now each time \ is pressed, the displayed number is incremented by one. Of course, several refinements are possible: we can initialize the counter to any desired number and count by a number other than one: Example 11: Set the previous counter so that it displays odd numbers. Simply press 1+2\, which, of course, returns 3. Now, successive presses of \ will return 5, 7, 9, etc. because \repeats the keys +2, using the displayed number as the first operand, which can also be entered by the user: Example 12: Calculate 1130 + 135, 1095 + 135 and 724 + 135. Note that the operation + 135 is present in all these calculations. We need not enter + 135 each time: 1130+135\ ( The operation + 135 is now in memory) 1095\ ( returns 1095 + 135) 724\ (returns 724 + 135) Answers: 1265, 1230 and 859 This feature also works for the - and / keys. For example, 345/25\ stores the operation / 25. Pressing 100\ returns 4 (i.e. 100 / 25). But, for * the operand stored is the first one (often known as the multiplicand) and not the multiplier: - 5 - - Version 1.0

Example 13: Calculate 23 13, 15 13 and 74 13. Now, the reoccurring operation is 13, but we have to enter it first: 13*23\ ( The operation 13 is now in memory) 15\ (returns 13 15) 74\ (returns 13 74) When in doubt whether the intended factor is being used, use the X Y function (~m). In this example, pressing ~m returns 13. Remember to press ~m again if you want to multiply any other number by 13, otherwise you ll be multiplying by the last result, 962. Answers: 299, 195, and 962. The following way of calculating square roots, named after Jimmy Lewis of New York University, was described in the 1973 book How to get the most out of your pocket calculator. 1 It was aimed at users of calculators not having the F key but having the constant divisor feature, which is also present on your HP 9s Example 14: In essence, the Lewis method for finding the square root of a, where a 0, is as follows: Store a 1 in M, (i.e. a -1\{) Press U Press 2\/\[\+ 2 Repeat the previous step until the resulting number does not change. The displayed number is M + 1 1 = a 1, so simply press 1\ to find a. Find 2 using the Lewis method. Answer: U 2\/\1\+ (returns 0.5) 2\/\1\+ (returns 0.4) 2\/\1\+ (returns 0.416666666) 2\/\1\+ (returns 0.413793103) 2\/\1\+ (returns 0.414285714) 2\/\1\+ (returns 0.414201183) 2\/\1\+ (returns 0.414215686) 2\/\1\+ (returns 0.414213198) 2\/\1\+ (returns 0.414213624) 2\/\1\+ (returns 0.414213551) 2\/\1\+ (returns 0.414213564) 2\/\1\+ (returns 0.414213562) 2\/\1\+ (returns 0.414213562) 1\ 2 = 1.414213562 to ten significant digits. 2 + a = + + a a 2 + 2 +... 1 This method is based on the formula 1 1, where a 0. 2 Note that this sequence is one keystroke shorter than the equivalent 2\/[\~o+ and as long as (2) ~o*[+2\ (in which case 1must be subtracted at the end: -1\). - 6 - - Version 1.0