Пример #1
0
    def Logarithm(self, a, b):
        self.Result = Logarithm.logarithm(a, b)
        return self.Result


#test = Calculator()
#print(test.divide(2,0))
Пример #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
Пример #4
0
 def test_MathOperations_log(self):
     self.assertEqual(2, Logarithm.log(100, 10))
 def test_MathOperations_log(self):
     self.assertEqual(4, Logarithm.log(16, 2))
Пример #6
0
 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))