INTRODUCTION TO SCIENTIFIC COMPUTING

Slides:



Advertisements
Similar presentations
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Advertisements

Topics covered: Floating point arithmetic CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
Floating Point (FLP) Representation A Floating Point value: f = m*r**e Where: m – mantissa or fractional r – base or radix, usually r = 2 e - exponent.
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
CSE 378 Floating-point1 How to represent real numbers In decimal scientific notation –sign –fraction –base (i.e., 10) to some power Most of the time, usual.
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
Floating Point Numbers.  Floating point numbers are real numbers.  In Java, this just means any numbers that aren’t integers (whole numbers)  For example…
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Chapter 3 Data Representation part2 Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010.
Chapter3 Fixed Point Representation Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 31.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
NCR Register
Factional Values What is 0.75 in binary?. How could we represent fractions? In decimal: – As fractions : 1/5.
Lecture 2 Number Representation and accuracy
The Teacher CP4 Binary and all that… CP4 Revision.
Round-off Errors and Computer Arithmetic. The arithmetic performed by a calculator or computer is different from the arithmetic in algebra and calculus.
Calculations Notes. Multiplication and Division Number of the sig. figs. is the result of the measurement with the smallest number of sig. figs. (least.
CSC 221 Computer Organization and Assembly Language
Floating Point Arithmetic
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
The Teacher CP4 Binary and all that… CP4 Revision.
1 Representation of Data within the Computer Oct., 1999(Revised 2001 Oct)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Accuracy vs. Precision Measurements need to accurate & precise. Accurate -(correct) the measurement is close to the true value. Precise –(reproducible)
Floating Point in Binary 1.Place Value Chart:
Errors in Numerical Methods
NCR Register INTRODUCTION, APPROXIMATION AND ERRORS.
Chapter 1 Scientific Computing 1.Computer Arithmetic (1.3) 2.Approximation in Scientific Computing (1.2) January 7.
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
Module 2.2 Errors 03/08/2011. Sources of errors Data errors Modeling Implementation errors Absolute and relative errors Round off errors Overflow and.
CHAPTER 3 SCIENTIFIC MEASUREMENT. A measurement is a quantity that has both a number and a unit Quantity represents a size, magnitude, or amount Your.
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
Cosc 2150: Computer Organization Chapter 9, Part 3 Floating point numbers.
Chapter 2 Errors in Numerical Methods and Their Impacts.
Introduction to Numerical Analysis I MATH/CMPSC 455 Loss of Significance.
FLOATING-POINT NUMBER REPRESENTATION
Introduction to Numerical Analysis I
Floating Point Representations
Department of Computer Science Georgia State University
Objectives Today: P4 Data Types – Floating Points P4 Variable Quiz P3 Iteration and Selection Practical Are you logged on? Then come around the table Unit.
Dr. Clincy Professor of CS
New head garb has been ordered
Gauss Quadrature Rule of Integration
Data Structures Mohammed Thajeel To the second year students
Introduction to Scientific Computing
Errors in Numerical Methods
CSCI206 - Computer Organization & Programming
SCIENTIFIC NOTATION.
INTRODUCTION TO SCIENTIFIC COMPUTING
Floating Point Representation
Errors in Numerical Methods
Computational Methods Autar Kaw University of South Florida
How to represent real numbers
How to represent real numbers
Dr. Clincy Professor of CS
Computational Methods EML3041
Approximations and Round-Off Errors Chapter 3
Numbers representations
Mechanical Engineering Majors Authors: Autar Kaw, Luke Snyder
Sources of Error Major: All Engineering Majors
Data Binary Arithmetic.
Chapter 1 / Error in Numerical Method
Chapter3 Fixed Point Representation
Computational Methods EML3041
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Chapter 1 Introduction.
Presentation transcript:

INTRODUCTION TO SCIENTIFIC COMPUTING http://nm.mathforcollege.com

Given the f (x) vs x curve, and the magnitude of the areas as shown, the value of y x a 5 7 2 b c -2 2 12 Cannot be determined http://nm.mathforcollege.com

A steel cylindrical shaft initially at room temperature is immersed in a dry-ice/alcohol bath. A layman estimates the reduction in diameter by using The layman uses value of the thermal expansion coefficient at -108oF in the above formula. Seeing the graph on your right, the magnitude of contraction you would calculate instead will be ______________than the layman’s estimate. Less More Same 30 http://nm.mathforcollege.com

The number of significant digits in 2.30500 is 4 5 6 7 http://nm.mathforcollege.com

The absolute relative approximate error in an iterative process at the end of the tenth iteration is 0.007%. The least number of significant digits correct in the answer is 2 3 4 5 7 http://nm.mathforcollege.com

The number 6.749832 with 3 significant digits with chopping is 6.75 6.749 6.750 http://nm.mathforcollege.com

The binary representation of (0.3)10 is (0.01001……...)2 (0.10100……...)2 (0.01010……...)2 (0.01100……...)2 http://nm.mathforcollege.com

In a five bit fixed representation, (0. 1)10 is represented as (0 In a five bit fixed representation, (0.1)10 is represented as (0.00011)2. The true error in this representation most nearly is 0.00625 0.053125 0.09375 9.5×10-8 http://nm.mathforcollege.com

add 7 subtract 7 add 15 subtract 15 Five bits are used for the biased exponent. To convert a biased exponent to an unbiased exponent, you would add 7 subtract 7 add 15 subtract 15 http://nm.mathforcollege.com

The largest positive number in a 7 bit word where 1st bit is used for the sign of number 2nd bit is used for the sign of exponent next 3 bits are used for the magnitude of the mantissa last 2 bits are used for the magnitude of the exponent is _________ 1.875 4 7 15 http://nm.mathforcollege.com