We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ad30a commit b41d5d7Copy full SHA for b41d5d7
Lib/test/test_math.py
@@ -506,6 +506,7 @@ def testExp2(self):
506
self.ftest('exp2(-1)', math.exp2(-1), 0.5)
507
self.ftest('exp2(0)', math.exp2(0), 1)
508
self.ftest('exp2(1)', math.exp2(1), 2)
509
+ self.ftest('exp2(2.3)', math.exp2(2.3), 4.924577653379665)
510
self.assertEqual(math.exp2(INF), INF)
511
self.assertEqual(math.exp2(NINF), 0.)
512
self.assertTrue(math.isnan(math.exp2(NAN)))
0 commit comments