summaryrefslogtreecommitdiff
path: root/lib/math/atan-impl.myr
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2019-05-01 15:57:06 -0400
committerS. Gilles <sgilles@math.umd.edu>2019-05-01 15:57:59 -0400
commit218258e4ac2940303be597272245cb09662fd759 (patch)
treea82aa527a29f863e16216bfc1725efbf209fbc50 /lib/math/atan-impl.myr
parentfb2a06c91f60a948687939741aa884b17219f715 (diff)
downloadmc-218258e4ac2940303be597272245cb09662fd759.tar.gz
Add 2sum in math util
Fast2sum is only for when magnitudes of the arguments are known. 2sum (called "slow2sum") avoids this, at the cost of speed. It ends up being necessary in the forthcoming log-overkill function.
Diffstat (limited to 'lib/math/atan-impl.myr')
-rw-r--r--lib/math/atan-impl.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/math/atan-impl.myr b/lib/math/atan-impl.myr
index 78f235d..38b973a 100644
--- a/lib/math/atan-impl.myr
+++ b/lib/math/atan-impl.myr
@@ -427,7 +427,7 @@ const atan264 = {y, x
du = 0.0
else
var t1, t2
- (t1, t2) = two_by_two(u, x)
+ (t1, t2) = two_by_two64(u, x)
du = ((y - t1) - t2)/x
;;