MCPcopy Index your code
hub / github.com/python/cpython / test_fma_single_round

Method test_fma_single_round

Lib/test/test_math.py:2779–2781  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2777 self.assertEqual(math.fma(a, b, -c), c)
2778
2779 def test_fma_single_round(self):
2780 a = float.fromhex('0x1p-50')
2781 self.assertEqual(math.fma(a - 1.0, a + 1.0, 1.0), a*a)
2782
2783 def test_random(self):
2784 # A collection of randomly generated inputs for which the naive FMA

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
fmaMethod · 0.45

Tested by

no test coverage detected