Rozwiązanie zadania "Ilorazy pierścienia wielomianów" #35

Closed
s426211 wants to merge 15 commits from (deleted):zad4 into master
Showing only changes of commit 472f422296 - Show all commits

15
main.py Normal file
View File

@ -0,0 +1,15 @@
import itertools
class PolyIntField:
def __init__(self, int_modulo, poly_modulo):
self.int_modulo = int_modulo
self.poly_modulo = poly_modulo
self.elements = list(itertools.product([x for x in range(0, int_modulo)]
, repeat=len(poly_modulo) - 1))
if __name__ == "__main__":
a = PolyIntField(3, [1, 1, 2, 2])
print(a.elements)
print(len(a.elements))