floating point form Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what is fixed point binary

A

when the numbers have a predetermined number of bits before and after the point

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

advantages of fixed point

A

makes numbers easier to process

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

disadvantages of fixed point

A

they cannot represent the range or accuracy of numbers that may be required

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

what are floating point numbers

A

when the number is expressed in m x 10^n where m is known as the mantissa and n is the exponent

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

if the number is positive, what should it start with, in floating point form

A

01

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

if the number is negative, what should it start with in floating point form

A

10

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

what does it mean for a number to be normalised

A

it either starts with 10 or 01

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

what does the exponent do

A

scales the mantissa by a power of two

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

floating point formula

A

FloatingPoint=Mantissa×2
^Exponent

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

why is normalisation important

A

-Maximises precision / accuracy for given number of bits;
- Unique representation of each number // simpler to test for equality of numbers;

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

uses of fixed vs floating point

A

Fixed point: Good for applications where speed is important and the range of values is small (e.g., financial systems).

Floating point: Better for representing a wide range of values but more complex in terms of calculations (e.g., scientific calculations, graphics processing).

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

what is an absolute error

A

The difference between the exact value and the approximate value stored in the system.

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

what is a relative error

A

The absolute error divided by the exact value.

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

compare absolute and relative errors

A

For Large Magnitude Numbers:

Absolute errors tend to be larger, but relative errors may be small since the error is small relative to the large value.
Example: A small absolute error on a large value like
10^6 may result in a very small relative error.

For Small Magnitude Numbers:

Even a small absolute error can cause a large relative error. This can be problematic when dealing with numbers close to zero.
Example: If the exact value is 0.001 and the stored value is 0.0009, the relative error will be much larger compared to a large number.

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

what is a rounding error

A

occurs when a number can’t be represented exactly within the limits of a system’s precision, and so it must be rounded to the nearest representable value.

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

how to represent more numbers using the same number of bits in floating point

A

Move a/some bit(s) from the exponent to the mantissa

17
Q

Explain why the relative error is usually considered to be a more important measure of
error than the absolute error.

A

The impact of an error depends on its size relative to the number that is represented

18
Q

advantages of floating vs fixed point

A

floating point :
- a floating point system can represent numbers with a
greater range than a fixed point system;
- can represent numbers much closer to zero // can represent much smaller numbers
- can represent much larger numbers

fixed point:

  • a fixed point system can represent (some) numbers more
    precisely than a floating point system;
    Calculations can be performed more quickly