A delightful question!
The Casio FX-991 series (including FX-991EX, FX-991CW, etc.) is an excellent line of scientific calculators, but like any finite-precision calculator, it has its limits. We're going to push those limits and demonstrate a calculation where Excel's higher numerical precision shines through.
Background: Numerical precision
The Casio FX-991 series uses a binary floating-point representation with a 40-bit mantissa ( significand ) and an 8-bit exponent (approximately 10 decimal digits of precision). This is a common trade-off between precision, memory, and speed for scientific calculators.
In contrast, Microsoft Excel uses the IEEE 754 double-precision floating-point format (64-bit), which has a 53-bit mantissa (~15-17 decimal digits of precision).
The calculation: Catastrophic cancellation
We'll exploit a well-known numerical analysis example: catastrophic cancellation in subtracting two nearly equal numbers. This phenomenon occurs when two numbers with similar magnitudes and opposite signs are subtracted, leading to a loss of significant digits.
Here's the calculation:
- Compute
exp(7.5) (a moderately large value)
- Compute
exp(7.5 - 1e-7) (a value very close to the previous one)
- Subtract the two results:
exp(7.5) - exp(7.5 - 1e-7)
Why this calculation is nasty:
exp(7.5) ≈ 1808.042...
exp(7.5 - 1e-7) ≈ 1808.041... (only the 7th significant digit differs)
When subtracting these two values, the first 6 significant digits cancel out, leaving only the differences in the lower digits. This is where the limited precision of the Casio FX-991 bites us.
Perform the calculation:
On your Casio FX-991:
exp(7.5) → ≈ 1808.0426 ( stored internally as 1.8080426 × 10^3 )
exp(7.5 - 1e-7) → ≈ 1808.0418 ( stored internally as 1.8080418 × 10^3 )
- Subtract:
Ans1 - Ans2 → 0.0008 ( only 1 significant digit remains! )
In Microsoft Excel (or any other software with higher precision):
Assuming you enter:
A1: =EXP(7.5) → 1808.04241445679
A2: =EXP(7.5-1E-7) → 1808.04160717834
A3: =A1-A2 → 0.000807278445 ( 4 significant digits remain! )
The verdict:
The Casio FX-991 returns 0.0008 (1 significant digit), while Excel yields 0.000807278445 (4 significant digits). The Excel result is much more accurate, as it retains more digits through the catastrophic cancellation.
Why did this happen?
The Casio FX-991:
- Computed
exp(7.5) and exp(7.5 - 1e-7) accurately to ~10 digits.
- Rounded each result to 10 digits (binary → decimal conversion).
- When subtracting, the first 6 digits canceled out, leaving only 4 digits (due to internal binary representation limitations).
- The final result was rounded again to 3 decimal places ( FX-991 display setting), discarding the already meager precision, yielding 0.0008.
Excel, with its higher 15-digit precision:
- Computed
exp(7.5) and exp(7.5 - 1e-7) accurately to ~15 digits.
- Retained more digits through the subtraction, as the 53-bit mantissa provided sufficient precision.
- Displayed the result with many more significant digits.
Bonus challenge:
Try these calculations to further stress your Casio FX-991:
1 - cos(1e-5) (use the [SHIFT][cos] button for cosine)
(1 + 1e-12) - 1
sin(3.1415926535897932384) (π - close to zero, but not quite)
Compare the results with Excel. You'll see the limits of your trusty Casio FX-991!
Now, go impress your friends, students, or colleagues with this demonstration of numerical limitations!