summaryrefslogtreecommitdiff
path: root/lib/math
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2018-07-31 13:36:55 -0400
committerS. Gilles <sgilles@math.umd.edu>2018-07-31 13:36:55 -0400
commit716c18ec85b68659886408d1f81301bf4e5f43bd (patch)
treead309dfd641a1de74405d44786bea1ac1a4a4d9e /lib/math
parentf762f96f07cf2dfc7b3bb745d6a767dccda0a01a (diff)
downloadmc-716c18ec85b68659886408d1f81301bf4e5f43bd.tar.gz
Improve accuracy of poly path of atan calculations.
Diffstat (limited to 'lib/math')
-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 c296a75..e934550 100644
--- a/lib/math/atan-impl.myr
+++ b/lib/math/atan-impl.myr
@@ -396,7 +396,7 @@ const atan_reduced = {u : flt64, du : flt64
if u < 0.0625
var s = u * u
var p = horner_polyu(s, atan_coeffs[:])
- -> u*p + du
+ -> u*p + u*du
;;
/*