4.3 Data Representation Flashcards

1
Q

Absoolute and Relative Error

A

Absolute Error - True Value - Appromixmate Value

Relative Error - Absolute Error / True Value

For example, represent 19.3 as most accurate as possible in floating point in which you get 19.25, therefore Absolute Error = 19.3 - 19.25 = 0.05 so Relative Error = 0.05 / 19.3 = 0.26%

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

Truncation

A

Method used when there are not enough bits to represent the full number, and so the extra bits are simply left out at the end.

For instance 0.0101101 would be stored in 4 bits as 0.010

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

Rounding

A

More accurate than truncation, if the bit after the last bit to be represented as 1, the previous bit would be increased to 1

For instance, 0.0101101 (0.3515625) would be stored as 0.011 (0.375), The rouding error would be 0.0000011 (0.0234375) which is found by the absolute error formula, 0.375 - 0.3515625 = 0.0234375

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