Commit 289b11ef authored by Florian Goth's avatar Florian Goth
Browse files

Revert "remove math"

This reverts commit beda4e88.
parent beda4e88
Pipeline #15336 passed with stages
in 10 minutes and 50 seconds
......@@ -3,14 +3,15 @@ from numpy import array as nparray
def ddkahan(x, y):
'''Transform the addition of two floating point numbers:
(Dekker1971) showed that this transform is exact, if.
x + y = r + e
(Dekker1971) showed that this transform is exact, if |x|>|y|.
Parameters:
x (float): a floating point number.
y (float): a floating point number with.
y (float): a floating point number with |y| < |x|.
Returns:
r (float):
r (float): x + y
e (float): the overflow
'''
r = x + y
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment