summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/math.rst15
-rw-r--r--Doc/whatsnew/3.7.rst9
2 files changed, 0 insertions, 24 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 42bbb02..da2b8cc 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -57,21 +57,6 @@ Number-theoretic and representation functions
If *x* is not a float, delegates to ``x.__floor__()``, which should return an
:class:`~numbers.Integral` value.
-.. function:: fma(x, y, z)
-
- Fused multiply-add operation. Return ``(x * y) + z``, computed as though with
- infinite precision and range followed by a single round to the ``float``
- format. This operation often provides better accuracy than the direct
- expression ``(x * y) + z``.
-
- This function follows the specification of the fusedMultiplyAdd operation
- described in the IEEE 754-2008 standard. The standard leaves one case
- implementation-defined, namely the result of ``fma(0, inf, nan)``
- and ``fma(inf, 0, nan)``. In these cases, ``math.fma`` returns a NaN,
- and does not raise any exception.
-
- .. versionadded:: 3.7
-
.. function:: fmod(x, y)
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 192a7ab..fe03def 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -100,15 +100,6 @@ 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
=============