From 95056bbcd5da58a98879b96465d008eaf8287884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Tue, 22 Dec 2020 16:59:36 +0100 Subject: [PATCH] Updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- module.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module.rb b/module.rb index 19a6d5e..0fb24e5 100755 --- a/module.rb +++ b/module.rb @@ -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 ####