def Logarithm(self, a, b): self.Result = Logarithm.logarithm(a, b) return self.Result #test = Calculator() #print(test.divide(2,0))
def test_MathOperations_Logarithm(self): self.assertEqual(6, Logarithm.logarithm(64, 2))
def Logarithm(self, a, b): self.Result = Logarithm.logarithm(a, b) return self.Result
def test_MathOperations_log(self): self.assertEqual(2, Logarithm.log(100, 10))
def test_MathOperations_log(self): self.assertEqual(4, Logarithm.log(16, 2))
def Log(self, a, b): self.Result = Logarithm.log(a, b) return math.log(a, b)
def test_MathOperations_Logarithm(self): self.assertEqual(3, Logarithm.logarithm(729, 9))