Numeric Processing Chapter 6, Exploring the Digital Domain.

Slides:



Advertisements
Similar presentations
FORMULAS & FUNCTIONS EXCEL. Input A collection of information Data typed into the spreadsheet Output Worksheet Results.
Advertisements

2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Introduction to Excel Formulas, Functions and References.
Spreadsheets A spreadsheet package is a general purpose computer package that is designed to perform calculations. A spreadsheet is a table which is divided.
Lesson 14 Creating Formulas and Charting Data
3-dimensional formula A formula that refers to cells in other worksheets.
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel 2010: Chapter1.
Chap 4 Formulas and Functions Exploring Spreadsheet Software.
Chapter 8 Representing Information Digitally.
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: November 10, 2004 Lecture Number: 31.
Assembly Language and Computer Architecture Using C++ and Java
Chapter 5 Floating Point Numbers. Real Numbers l Floating point representation is used whenever the number to be represented is outside the range of integer.
What-If Analysis, Charting, and Working With Large Spreadsheets
8 November Forms and JavaScript. Types of Inputs Radio Buttons (select one of a list) Checkbox (select as many as wanted) Text inputs (user types text)
Chapter 2 Data Types, Declarations, and Displays
Lesson 20 Creating Formulas and Charting Data
End Show Introduction to Electronic Spreadsheets Unit 3.
Technology Basics Creating Worksheet Formulas. 2 Understand Formulas Equations used to calculate values in cells are called formulas. Formulas consist.
XP Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 2 – Working With Formulas and Functions.
You can do this to the row and column titles to make larger worksheets easier to read. The titles will stay still while you scroll through the document.
Calculations & Graphics using Spreadsheet ADE100- Computer Literacy Lecture 17.
Excel – Lesson 1 Pasewark & PasewarkMicrosoft Office 2007: Introductory 1 Entering a Formula (continued) Formulas can include more than one operator. The.
Computer Literacy BASICS
Numbers and number systems
Syntax MROUND(number,multiple) Number is the value to round. Multiple is the multiple to which you want to round number. Remark MROUND rounds up, away.
Computer Arithmetic Nizamettin AYDIN
Spreadsheets and Microsoft Excel. Introduction n A spreadsheet (called a worksheet in Excel) is a two-dimensional array of cells containing data to be.
Term 2, 2011 Week 1. CONTENTS Types and purposes of graphic representations Spreadsheet software – Producing graphs from numerical data Mathematical functions.
STATISTICS Microsoft Excel “Frequency Distribution”
1 Lesson 19 Creating Formulas and Charting Data Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Spreadsheet A spreadsheet is the computer equivalent of a paper ledger sheet. It consists of a grid made from columns and rows. It is an environment that.
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: October 22, 2004 Lecture Number: 24.
Data Representation.
Exploring Engineering Chapter 3, Part 2 Introduction to Spreadsheets.
Data Representation in Computer Systems
Working with Spreadsheets S S T : S P R E A D S H E E T S SST 2 Objectives 1.Perform data entry tasks 2.Use formulae and functions in worksheet calculations.
ELECTRONIC SPREADSHEET Chang-Yang Lin Eastern Kentucky University.
Introduction to Microsoft Excel: Exploring Microsoft Excel.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Round-off Errors and Computer Arithmetic. The arithmetic performed by a calculator or computer is different from the arithmetic in algebra and calculus.
Chapter 12 Creating a Worksheet.
Chapter 6 Calculations, Visualization, and Simulation.
Information Processing Notes for beginning our Excel Unit.
ME 142 Engineering Computation I Excel Basics. Key Concepts Entering Data &Formulas Moving/Copying Data & Formulas Relative & Absolute Addressing Named.
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
Creating A Worksheet and Embedded Chart Chapter 1.
Goals Define the role of general information systems Explain how spreadsheets are organized (cells, lists or columns, tables, sheets, [hierarchy], sort,
XP 1 Microsoft Office Excel 2003 Working With Formulas and Functions.
Programming Fundamentals. Overview of Previous Lecture Phases of C++ Environment Program statement Vs Preprocessor directive Whitespaces Comments.
CS1Q Computer Systems Lecture 2 Simon Gay. Lecture 2CS1Q Computer Systems - Simon Gay2 Binary Numbers We’ll look at some details of the representation.
By max guerrero,bryan hernandez,caleb Portales  Spreadsheets are set up like tables with information running across rows and down columns. You could.
XP 1 ﴀ New Perspectives on Microsoft Office 2003, Premium Edition Excel Tutorial 2 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
1 Academic PowerPoint Introduction to Spreadsheets – Fundamental Skills 1.
Unit 24 Learning Spreadsheet Essentials Starting on page 287  Mrs. Jefcoat  Business Technology Applications Unit 24: Lessons
Chapter 13 Spreadsheets and Business Graphics: Facts and Figures.
XP Practical OpenOffice.org Chapter 5 1 Creating a Worksheet.
Introduction to Spreadsheets –
ME 142 Engineering Computation I
MS-EXCEL SUMMARY.
MS-Excel Part 1.
Statistical Analysis with Excel
Statistical Analysis with Excel
Lesson 20 Creating Formulas and Charting Data
Introduction to Spreadsheets –
Exploring Microsoft Excel 2003
Introduction to Spreadsheets
Presentation transcript:

Numeric Processing Chapter 6, Exploring the Digital Domain

Digital Number Representations Integers infinite discrete subset of the number line are represented with a limited range Decimal numbers (real numbers) infinite and continuous are represented with limited range and limited precision

Integer Storage All integers between two values (one negative and one positive) are stored with exact precision The specific values marking the range limits depend on the particular computer system being used If calculations with integers give rise to numbers outside the allowable range, we say that an integer overflow error has occurred

Real (Decimal) Number Storage Real numbers are stored in floating point representation a sign an exponent a mantissa (normalized decimal fraction) no digits to the left of the decimal first digit to the right of the decimal is nonzero Limited precision because most real numbers have an infinite decimal expansion (this holds no matter what number base is used in the representation)

Real Number Storage Limited Range and Precision There are three categories of numbers left out when floating point representation is used numbers out of range because their absolute value is too large (similar to integer overflow) numbers out of range because their absolute value is too small (numbers too near zero to be stored given the precision available numbers whose binary representations require either an infinite number of binary digits or more binary digits than the bits available

Real Number Storage Limited Range and Precision Illustrated

Limited Range and Precision Some Consequences Limited range will invalidate certain calculations If integers are involved, this can often be avoided by switching to real numbers For real number calculations, this problem arises infrequently and in those cases can sometimes be handled by special methods. It is not a common occurrence in non-scientific work. Limited precision for real numbers is very pervasive Assume that most decimal calculations will, in fact, be in error! Evaluate and use computer calculations with this in mind

Social Themes: Risks in Numerical Computing Almost all computer calculations involve roundoff error (limited precision error) If not monitored and planned for carefully, such errors can lead to unexpected and catastrophic results Arianne 5 Rocket Failure Patriot Missile Failure during Gulf War

Software for Numerical Work Software Libraries Spreadsheets Mathematical Software symbolic manipulation data analysis data visualization

Spreadsheets: Brief History First spreadsheets appeared in early 1980s ran on personal computers helped popularize personal computers Basic Organization Hasn’t Changed computations organized on a two-dimensional worksheet both built-in and user-supplied formulas used to facilitate computation

Spreadsheets: Basic Features Worksheet Organization rectangular grid of cells cells are identified by the row (indicated by an integer) and column (indicated by a letter) in which they appear Entering Data one cell is active at a time (called the current cell) a separate data entry bar is associated with the current cell text, numerical data, dates, and formulas can be entered into the current cell through the entry bar

Worksheet Organization: Illustrated

Spreadsheets: Basic Features (cont’d) Formatting Data variety of formats depending on the type of data data format is associated with the cell and can be changed later Using Formulas in a Worksheet cell addresses (column, row) can be used like variable names in formulas formulas begin with an = or other special symbol

Using Spreadsheet Formulas An Example

Spreadsheets: Basic Features (cont’d) Copying (Replicating) Formulas formulas can be copied to perform repetitive calculations especially useful when similar calculations take place on a group (block,row, column) of contiguous data Cell Referencing cell references will be adjusted automatically when formulas are copied if relative cell addressing is used in formulas cell references will remain the same if absolute cell addressing is used in formulas relative cell addressing is the default addressing scheme

Copying Spreadsheet Formulas An Example The formula in cell B12 has been copied to cells C12 and D12. Note how the cell references are automatically adjusted.

Spreadsheets Additional Features Using absolute references and problem parameters Using built-in functions Using logical functions Displaying data in charts Spreadsheets as decision support tools

Spreadsheet Models Using Problem Parameters Most spreadsheet models will require modifications over time as underlying assumptions and important problem values change Good spreadsheet design will minimize the danger of making errors when updating spreadsheet models Problem parameters are important problem values that are subject to change over time Separating problem parameters, placing them in clearly identified cells, then referring to them by absolute references in formulas within the model makes changing them relatively error-proof

Spreadsheet Models Decision Support Modeling problem parameters as clearly identified separate entities enables convenient “what if” analysis in spreadsheet models “What if” analysis involves observing modified calculations and results when problem parameters change. In other words, the model is examined in response to questions of the form “What if … changes to … ?”

Spreadsheet Models Using Built-in Functions Built-in functions act on arguments to produce resulting values A user of a built-in function need not know all the details of how the function does its calculation The user needs to understand only what input arguments are required and what type of result is produced An extensive library of financial and statistical functions adds powerful problem-solving capabilities for the average user

Spreadsheet Models Using Built-in Logical Functions Logical functions allow spreadsheet models to make decisions during calculations Such processing is called conditional processing and is a fundamental property of programming languages For example, the IF function acts on a logical (or Boolean) expression to take one of two actions, as shown here

Spreadsheet Models Displaying Data in Charts Graphical display and summary of data is often easier to interpret than the raw data itself Spreadsheets typically provide several types of charts bar charts pie charts

Bar Chart An Example

Pie Chart An Example

Summary Integers are stored with limited range: real numbers (decimals) with limited range and limited precision Almost all decimal calculations involve roundoff errors because of limited precision Spreadsheets provide powerful, yet easy to use, calculational environments formulas and relative referencing provide for easy calculation extension absolute referencing and problem parameters enable modeling built-in functions (arithmetic and logical) displaying data in charts decision support tool