MCPcopy Index your code
hub / github.com/RustPython/RustPython / testAtan

Method testAtan

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

Source from the content-addressed store, hash-verified

305 self.assertTrue(math.isnan(math.asinh(NAN)))
306
307 def testAtan(self):
308 self.assertRaises(TypeError, math.atan)
309 self.ftest('atan(-1)', math.atan(-1), -math.pi/4)
310 self.ftest('atan(0)', math.atan(0), 0)
311 self.ftest('atan(1)', math.atan(1), math.pi/4)
312 self.ftest('atan(inf)', math.atan(INF), math.pi/2)
313 self.ftest('atan(-inf)', math.atan(NINF), -math.pi/2)
314 self.assertTrue(math.isnan(math.atan(NAN)))
315
316 def testAtanh(self):
317 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