J
Jean-Claude Arbaut
I tried a simple "epsmach" test:
+-----------+-----------+-----------+-----------+
| | A | B | C |
+-----------+-----------+-----------+-----------+
| 1 | 1 | =A1+1 | =B1-1 |
+-----------+-----------+-----------+-----------+
| 2 | =A1/2 | =A2+1 | =B2-1 |
+-----------+-----------+-----------+-----------+
| 3 | =A2/2 | =A3+1 | =B3-1 |
+-----------+-----------+-----------+-----------+
| 4 | =A3/2 | =A4+1 | =B4-1 |
+-----------+-----------+-----------+-----------+
... ... ... ...
With this I can compute the smallest x such
that 1+x > 1, in computer arithmetic. I would
expect to find the following
+-----------+-----------+-----------+-----------+
| 53 | 2.220e-16 | 1.0000... | 2.220e-16 |
+-----------+-----------+-----------+-----------+
| 54 | 1.110e-16 | 1 | 0 |
+-----------+-----------+-----------+-----------+
This is the expected result with IEEE754 arithmetic,
which is the one found on PowerPC and Pentium processors.
Instead, Excel gives:
+-----------+-----------+-----------+-----------+
| 51 | 8.882E-16 | 1.0000... | 8.882E-16 |
+-----------+-----------+-----------+-----------+
| 52 | 4.441E-16 | 1 | 0 |
+-----------+-----------+-----------+-----------+
Does Excel use a special rounding method ?
Or perhaps software floating point ?
+-----------+-----------+-----------+-----------+
| | A | B | C |
+-----------+-----------+-----------+-----------+
| 1 | 1 | =A1+1 | =B1-1 |
+-----------+-----------+-----------+-----------+
| 2 | =A1/2 | =A2+1 | =B2-1 |
+-----------+-----------+-----------+-----------+
| 3 | =A2/2 | =A3+1 | =B3-1 |
+-----------+-----------+-----------+-----------+
| 4 | =A3/2 | =A4+1 | =B4-1 |
+-----------+-----------+-----------+-----------+
... ... ... ...
With this I can compute the smallest x such
that 1+x > 1, in computer arithmetic. I would
expect to find the following
+-----------+-----------+-----------+-----------+
| 53 | 2.220e-16 | 1.0000... | 2.220e-16 |
+-----------+-----------+-----------+-----------+
| 54 | 1.110e-16 | 1 | 0 |
+-----------+-----------+-----------+-----------+
This is the expected result with IEEE754 arithmetic,
which is the one found on PowerPC and Pentium processors.
Instead, Excel gives:
+-----------+-----------+-----------+-----------+
| 51 | 8.882E-16 | 1.0000... | 8.882E-16 |
+-----------+-----------+-----------+-----------+
| 52 | 4.441E-16 | 1 | 0 |
+-----------+-----------+-----------+-----------+
Does Excel use a special rounding method ?
Or perhaps software floating point ?