Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
 def test_MathOperations_division(self):
     Division.quotient(1, 2)
     self.assertEqual(0.5, Division.quotient(1, 2))
Ejemplo n.º 4
0
def Quotient(a, b):
    return Division.quotient(a, b)
Ejemplo n.º 5
0
 def test_MathOperations_division(self):
     self.assertEqual(2, Division.quotient(10, 5))
Ejemplo n.º 6
0
 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))
Ejemplo n.º 9
0
 def test_calculator_divide(self):
     self.assertEqual(2, Division.quotient(6,3))
 def test_MathOperations_Quotient(self):
     self.assertEqual(2, Division.quotient(6, 3))