Skip to content
Snippets Groups Projects
Commit 55aff597 authored by jonas.stirnema's avatar jonas.stirnema
Browse files

Removed mod from evaluate

parent 4c45e872
No related branches found
No related tags found
No related merge requests found
...@@ -45,5 +45,5 @@ class polynome(): ...@@ -45,5 +45,5 @@ class polynome():
# Using horner method # Using horner method
res = 0 res = 0
for i in range(len(self.coefs) - 1, -1, -1): for i in range(len(self.coefs) - 1, -1, -1):
res = (res * x + self.coefs[i]) % self.prime_mod res = (res * x + self.coefs[i])
return res return res
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment