Topic 5 - Rounding Errors Flashcards

1
Q

What is a rounding error?

A

When rounding creates an error between the original number and the rounded number

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

Define absolute error

A

Absolute error is the difference between the theoretical exact value calculated with no errors present and the processed computed value to be stored

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

Define relative error

A

Relative error is the value of the absolute error divided by the theoretical exact value with no errors present

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

What is the formula to find absolute error

A

MOD (exact value - computed value)

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

What is the formula to find the relative error

A

exact value

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

Find absolute and relative errors for a computed value of 0.02 and an exact value of 0.017.

A

Absolute error = MOD (exact value - computed value)
Absolute error = MOD (0.017-0.02) = 0.003

Relative error = Absolute error over exact value
Relative error = 0.003/0.017 = 0.17647

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

Define precision

A

Precision is associated with word length and the maximum number of significant digits that can be represent

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

Define range

A

range is the set of all numbers that can be represented using a specific number system

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

Define floating point

A

Floating point is a real data type where the binary point can move within the number

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

Define fixed point

A

Fixed point is a real data type where a number has a fixed number of digits either before or after the decimal point

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

Define normalised floating point

A

Normalised floating point number is where the binary point position is fixed in standard form position and the exponent can float to reflect different values of that number

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

Define mantissa

A

Mantissa is the part of the floating point number that includes the significant digits within a number

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

Define exponent

A

Exponent is the power that the number within the mantissa is raised

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

Define underflow

A

If the result of a calculation is smaller than the smallest number that can be represented by the system, then an underflow will occur and the result will be stored as zero; dividing very small numbers can cause underflow.

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

Define overflow

A

If the result of a calculation is too large a value to be represented by the system, then an overflow will occur; this can cause serious problems and is most likely to occur when multiplying two large numbers. Double precision registers can be used to minimise the occurrence of overflow.

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

When does underflow occur?

A

Underflow occurs where the required value is too small to be stored using the number of bits available

17
Q

When does overflow occur?

A

Overflow occurs where the required value is too large to be stored using the number of bits available