Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hypertiling
hypertiling
Commits
289b11ef
Commit
289b11ef
authored
May 24, 2022
by
Florian Goth
Browse files
Revert "remove math"
This reverts commit
beda4e88
.
parent
beda4e88
Pipeline
#15336
passed with stages
in 10 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
hypertiling/transformation.py
View file @
289b11ef
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment