@ -12,4 +12,7 @@ def pi_approx_leibniz(precision):
return multiply(result, 4)
def rad2deg(radNumber):
return (radNumber * 180) / math.pi
def sin_approx_bhaskara(radNumber):
return radNumber
@ -36,6 +36,9 @@ class MyTestCase(unittest.TestCase):
delta *= -1
self.assertLess(delta, 0.01)
def test_sin_0_should_be_0(self):
self.assertEqual(sin_approx_bhaskara(0), 0)
if __name__ == '__main__':
unittest.main()