The Look and Feel of Zero - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

The Look and Feel of Zero

Description:

The Look and Feel of Zero. Dr. D. E. (Steve) Stevenson. School of Computing Clemson ... The students expect the numbers to work like they did in high school and ... – PowerPoint PPT presentation

Number of Views:36
Avg rating:3.0/5.0
Slides: 25
Provided by: Syst201
Category:
Tags: clemson | feel | look | zero

less

Transcript and Presenter's Notes

Title: The Look and Feel of Zero


1
The Look and Feel of Zero
  • Dr. D. E. (Steve) Stevenson
  • School of Computing Clemson
  • Steve_at_cs.clemson.edu

2
Contents
  • Expectation
  • Wilkinson Numbers
  • IEEE 754/854 Floating Point
  • Cautionary Tale
  • When Zero is not Zero

3
Students Viewpoint
4
Student Expectations
  • The students expect the numbers to work like they
    did in high school and the way the instructors
    pretend on the board.

5
Experiment
  • Folk theorem Conversion between rectangular and
    polar coordinates is perfect.
  • Constructive reality It aint.
  • Well come back in a second

6
Wilkinson Numbers
7
Wilkinson and Kahan
  • James H. Wilkinson (1950s) was the first to
    propose computing numbers be like scientific
    notation.
  • IEEE finally standardized floating point
    arithmetic (well sorta) in the mid-1980s after
    much work by William Kahan.
  • Ill call the theoretical set Wilkinson Numbers.

8
Wilkinson Numbers for (b,p,e)
  • The number w 0.0 plus the numbers

9
?, ?, and ?
  • Let b, p, and e(emin, emax) be integers. All the
    numbers w in the pattern

10
Explore
11
Answers
  • The total range is 0.10010-2 to 0.999102.
  • 990 mantissas spread from 0.100 to 0.999
  • Logarithmically distributed.

12
Error Basics
  • For real f(x), denote the approximation by
  • Error
  • Absolute error
  • Relative error

13
For Functions,
  • For functions, we have
  • In, other words,

14
Examples to Try
15
Condition Numbers
  • How hard is it to compute a number given the rule
    f and a slight change in the parameter x?
  • The familiar linear algebra concept can be
    expanded.

16
Condition Number
This last expression is called the condition
number of y relative to x
17
Examples to Try
18
The Trick
19
Arithmetic
20
Beware of Plus/Minus
21
Beware the Approximations
22
Fun with ?
  • The real value truncated to 50 digits is 3.14159
    26535 89793 23846 26433 83279 50288 41971 69399
    37510
  • How good an approximation is 22/7.
  • Is 355/113 better than 22/7?

23
Now, For What Values
24
Finally, Polar-Rectangular
  • 10,000,000 trials in box 1,000x1,000.
  • Random points, convert to polar and invert.
  • 1/3 (approx) were correct.
  • Of the rest
  • Mean is 357e
  • Standard Deviation is 210e
Write a Comment
User Comments (0)
About PowerShow.com