def unknownPopulationStdev(seed, data, percent): ZScore = Zsc.zsc(seed, data) MarOfError = MarginOfError.marginOfError(seed, data) p = percent q = Subtraction.difference(1, p) pq = Division.quotient(ZScore, MarOfError) samplePopulation = Exponent.power(pq, 2) * p * q return samplePopulation
def unknownPopStdDev(seed, data, percent): z_score = Z_score.z_score(seed, data) marginError = MarginOfError.marginOfError(seed, data) x = percent y = Subtraction.difference(1, x) xy = Division.quotient(z_score, marginError) sample = Exponent.power(xy, 2) * x * y return sample
def test_MathOperations_division(self): Division.quotient(1, 2) self.assertEqual(0.5, Division.quotient(1, 2))
def Quotient(a, b): return Division.quotient(a, b)
def test_MathOperations_division(self): self.assertEqual(2, Division.quotient(10, 5))
def Divide(self, a, b): self.Result = Division.quotient(a, b) return self.Result
def test_MathOperations_division(self): self.assertEqual(3, Division.quotient(6, 2))
def test_MathOperations_Division(self): self.assertEqual(2, Division.quotient(4, 2))
def test_calculator_divide(self): self.assertEqual(2, Division.quotient(6,3))
def test_MathOperations_Quotient(self): self.assertEqual(2, Division.quotient(6, 3))