Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-12-22 16:59:36 +01:00
parent 6ed57a7241
commit 95056bbcd5
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -409,6 +409,11 @@ def sumaPunktow(a,b,p,x1,y1,x2,y2)
y3 = (lambda * (x1 - x3) - y1) % p
return x3,y3
end
# P + -Q = 0 DZIALA
if (x1 == x2) && (y1 == y2%p)
#puts "0 - el.neutralny"
return "e","e"
end
end
#### MODULE 3 ####