It is important to understand how computers make small errors during a computation. As a result, some algorithms may yield completely incorrect errors because these errors may be allowed to grow out of control. This happens for unstable algorithms. The first step is understanding how a computer stores numbers in memory. For this purpose, it uses floating point numbers.

What is a floating point number?

Floating point numbers with base 2 have the form

where is called the exponent, is the precision, and

is the significand.

Example of floating-point number: 3.140625.

It is positive, so the sign is .

It’s between (aka, ) and (aka, ). So, the exponent is equal to .

The significand is 1.5703125. Decomposition of the significand:

Bits for significand: , , .

Stability of the LU factorization