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

Method testAtan

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

Source from the content-addressed store, hash-verified

272 self.assertTrue(math.isnan(math.asinh(NAN)))
273
274 def testAtan(self):
275 self.assertRaises(TypeError, math.atan)
276 self.ftest('atan(-1)', math.atan(-1), -math.pi/4)
277 self.ftest('atan(0)', math.atan(0), 0)
278 self.ftest('atan(1)', math.atan(1), math.pi/4)
279 self.ftest('atan(inf)', math.atan(INF), math.pi/2)
280 self.ftest('atan(-inf)', math.atan(NINF), -math.pi/2)
281 self.assertTrue(math.isnan(math.atan(NAN)))
282
283 def testAtanh(self):
284 self.assertRaises(TypeError, math.atan)

Callers

nothing calls this directly

Calls 3

ftestMethod · 0.95
assertTrueMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected