summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.7.rst
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2017-01-21 12:35:30 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2017-01-21 12:35:30 (GMT)
commitd1b230e48b81eb90d10f0ceb4e34c547800bd3a8 (patch)
treebb7cfe1f084957c978a105111f7345dddecd695d /Doc/whatsnew/3.7.rst
parent502efda10c6ec54ba9f0d490264b785971b2b6cc (diff)
downloadcpython-d1b230e48b81eb90d10f0ceb4e34c547800bd3a8.zip
cpython-d1b230e48b81eb90d10f0ceb4e34c547800bd3a8.tar.gz
cpython-d1b230e48b81eb90d10f0ceb4e34c547800bd3a8.tar.bz2
Issue #29282: add fused multiply-add function, math.fma.
Diffstat (limited to 'Doc/whatsnew/3.7.rst')
-rw-r--r--Doc/whatsnew/3.7.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index fe03def..192a7ab 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -100,6 +100,15 @@ The :const:`~unittest.mock.sentinel` attributes now preserve their identity
when they are :mod:`copied <copy>` or :mod:`pickled <pickle>`.
(Contributed by Serhiy Storchaka in :issue:`20804`.)
+math module
+-----------
+
+A new function :func:`~math.fma` for fused multiply-add operations has been
+added. This function computes ``x * y + z`` with only a single round, and so
+avoids any intermediate loss of precision. It wraps the ``fma`` function
+provided by C99, and follows the specification of the IEEE 754-2008
+"fusedMultiplyAdd" operation for special cases.
+
Optimizations
=============