uxarray.utils.computing._two_sum#
- uxarray.utils.computing._two_sum(a, b)#
Error-free transformation of the sum of two floating-point numbers such that a + b = x + y exactly
- Parameters:
- Returns:
The sum and the error term.
- Return type:
Examples
>>> _two_sum(1.0, 2.0) (3.0, 0.0)
Knuth. 1998. The Art of Computer Programming (3rd ed.). Vol. 2. Addison-Wesley, Reading, MA.