1.2 Round-off Errors and Computer Arithmetic Flashcards

1
Q

List the 3 machine number properties (base, precision, and range)

A

(a) Each machine number has an integer base, beta > 1
(b) Each machine number has an integer precision, k >= 1 (basically the # of sigfigs)
(c) Each machine has an integer exponent, n, which falls within a given range (n_min, n_(min+1), … , n_(max-1), n_max)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the floating point number system?

A

The set of numbers

x = (+- 0.d1d2d3d4…dk)beta^n

where 
d1 = {1,2,3, ... , beta-1}
d2, d3, ..., dk = {0,1,2,3 ... , beta-1}
n_min <= n <= n_max
the number d1d2d3...dk is called the mantissa
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Having an unevenly spaced number line bounds the ________ error

A

relative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Having an evenly spaced number line bounds the ________ error

A

absolute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the IEEE Standard for double precision floating point numbers?

A

(a) base is 2
(b) Exponent is 11 bits in offset binary
(c) Mantissa is 52 bits (k = 53)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is overflow?

A

When the program terminates or sets the answer to infinity once the calculation surpasses the realmax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is underflow

A

When the program sets the answer to zero because the calculations drop below the realmin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is chopping and rounding?

A

Chopping is when you simply drop off numbers you are not interested in and rounding is … well… rounding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

|p - p*| represents the _____ _____

A

absolute error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

|p - p*|/|p| represents the _____ _____

A

relative error (basically the percentage error)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the maximum relative error for IEEE double precision floating point?

A

Chopping: |x-fl(x)| <= beta^(1-k)
Rounding: |x-fl(x)| <= (1/2)beta^(1-k)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is machine epsilon and what does it represent?

A

2.2*10^(-16). If two numbers are closer together than this number, then the computer cannot tell the difference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a cancellation error?

A

An error caused by subtracting nearly equal numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is an amplification of round-off error?

A

An error caused by multiplying your round-off error by a factor of >1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an accumulation of round-off error?

A

An error caused by round-off errors being repeatedly added together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly