Ejemplo n.º 1
0
 def test_9(self):
     from phenum.numerics import binomial_coefficient
     n = 32
     r = 22
     out = 64512240
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 2
0
 def test_7(self):
     from phenum.numerics import binomial_coefficient
     n = 47
     r = 25
     out = 14833897694226
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 3
0
 def test_8(self):
     from phenum.numerics import binomial_coefficient
     n = 42
     r = 13
     out = 25518731280
     self.assertEqual(binomial_coefficient(n,r),out)
 def test_7(self):
     from phenum.numerics import binomial_coefficient
     n = 47
     r = 25
     out = 14833897694226
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 5
0
 def test_6(self):
     from phenum.numerics import binomial_coefficient
     n = 44
     r = 6
     out = 7059052
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 6
0
 def test_1(self):
     from phenum.numerics import binomial_coefficient
     n = 47
     r = 11
     out = 17417133617
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 7
0
 def test_3(self):
     from phenum.numerics import binomial_coefficient
     n = 24
     r = 1
     out = 24
     self.assertEqual(binomial_coefficient(n,r),out)
 def test_2(self):
     from phenum.numerics import binomial_coefficient
     n = 48
     r = 29
     out = 11541847896480
     self.assertEqual(binomial_coefficient(n, r), out)
 def test_3(self):
     from phenum.numerics import binomial_coefficient
     n = 24
     r = 1
     out = 24
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 10
0
 def test_13(self):
     from phenum.numerics import binomial_coefficient
     n = 1
     r = 10
     out = 0
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 11
0
 def test_1(self):
     from phenum.numerics import binomial_coefficient
     n = 47
     r = 11
     out = 17417133617
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 12
0
 def test_11(self):
     from phenum.numerics import binomial_coefficient
     n = 0
     r = 0
     out = 1
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 13
0
 def test_9(self):
     from phenum.numerics import binomial_coefficient
     n = 32
     r = 22
     out = 64512240
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 14
0
 def test_8(self):
     from phenum.numerics import binomial_coefficient
     n = 42
     r = 13
     out = 25518731280
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 15
0
 def test_11(self):
     from phenum.numerics import binomial_coefficient
     n = 0
     r = 0
     out = 1 
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 16
0
 def test_4(self):
     from phenum.numerics import binomial_coefficient
     n = 21
     r = 2
     out = 210
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 17
0
 def test_13(self):
     from phenum.numerics import binomial_coefficient
     n = 1
     r = 10
     out = 0 
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 18
0
 def test_5(self):
     from phenum.numerics import binomial_coefficient
     n = 35
     r = 27
     out = 23535820
     self.assertEqual(binomial_coefficient(n, r), out)
Ejemplo n.º 19
0
 def test_2(self):
     from phenum.numerics import binomial_coefficient
     n = 48
     r = 29
     out = 11541847896480
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 20
0
 def test_5(self):
     from phenum.numerics import binomial_coefficient
     n = 35
     r = 27
     out = 23535820
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 21
0
 def test_4(self):
     from phenum.numerics import binomial_coefficient
     n = 21
     r = 2
     out = 210
     self.assertEqual(binomial_coefficient(n,r),out)
Ejemplo n.º 22
0
 def test_6(self):
     from phenum.numerics import binomial_coefficient
     n = 44
     r = 6
     out = 7059052
     self.assertEqual(binomial_coefficient(n, r), out)