def test_derive(self): a = Polynomial([5, 3, 1, 1, 6, 8]) r = a.derive() self.assertEqual(list(r), [25, 12, 3, 2, 6])
def test_derive(self): a = Polynomial([5,3,1,1,6,8]) r = a.derive() self.assertEqual(list(r), [25, 12, 3, 2, 6])
def test_derive(self): a = Polynomial(map(GF2int, [5, 3, 1, 1, 6, 8])) r = a.derive() self.assertEqual(list(r), [17, 12, 3, 2, 6])
def test_derive(self): a = Polynomial(map(GF2int, [5,3,1,1,6,8])) r = a.derive() self.assertEqual(list(r), [17, 12, 3, 2, 6])