How to use this calculator
Compare ordinary ordered floating-point addition with Neumaier compensated summation.
- Enter Terms in accumulation order. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Compare ordered floating-point addition with compensated summation
Binary floating-point addition rounds intermediate results. When terms have very different magnitudes, small values can be lost during accumulation; this diagnostic compares the ordinary ordered sum with Neumaier compensation.
Inputs and units
- Terms in accumulation order: Comma-separated finite numbers; their order is preserved for the ordinary sum and compensated calculation.
Formula and method
Ordinary sum adds terms sequentially. Neumaier compensation tracks the rounding residual at each addition and adds the correction to the final sum. The reported difference is the absolute gap between those two computed values.
Worked example
For [10¹⁶, 1, −10¹⁶, 3], ordinary binary64 accumulation gives 3, while compensated summation recovers 4; the absolute difference is 1.
Interpreting the result
The diagnostic shows that accumulation order and finite precision can change a computed sum. A compensated result can be more accurate for some inputs but is not an exact or arbitrary-precision answer.
Assumptions and limits
Both methods use standard binary64 numbers. Compensation cannot restore information lost before input, prevent every overflow, or guarantee the correctly rounded exact sum for all sequences.
Method references
Frequently asked questions
Why does the order of addition matter?
Each floating-point addition rounds to a representable value. Adding a small term to a much larger running total can round that small contribution away before later cancellation.
How do I use the Compensated floating point sum diagnostic calculator?
Enter Terms in accumulation order. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Compensated floating point sum diagnostic?
For [10¹⁶, 1, −10¹⁶, 3], ordinary binary64 accumulation gives 3, while compensated summation recovers 4; the absolute difference is 1.
What does the Compensated floating point sum diagnostic calculator calculate?
Compare ordinary ordered floating-point addition with Neumaier compensated summation.
What assumptions apply to Compensated floating point sum diagnostic?
Both methods use standard binary64 numbers. Compensation cannot restore information lost before input, prevent every overflow, or guarantee the correctly rounded exact sum for all sequences.