[issue29282] Fused multiply-add: proposal to add math.fma()

Mark Dickinson report at bugs.python.org
Sat Jan 21 08:17:43 EST 2017


Mark Dickinson added the comment:

Also failures on Gentoo: here b is positive (possibly +inf), and c is finite, so we expect an infinite result. Instead, we're apparently getting a NaN. I don't have a good guess about what's causing this: the rest of the tests are passing, so it's unlikely that we're using a bad FMA emulation. Maybe an optimization bug?

======================================================================
ERROR: test_fma_infinities (test.test_math.FMATests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.ware-gentoo-x86.installed/build/target/lib/python3.7/test/test_math.py", line 1482, in test_fma_infinities
    self.assertEqual(math.fma(math.inf, b, c), math.inf)
ValueError: invalid operation in fma

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29282>
_______________________________________


More information about the Python-bugs-list mailing list