Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
6ed57a7241
commit
95056bbcd5
@ -409,6 +409,11 @@ def sumaPunktow(a,b,p,x1,y1,x2,y2)
|
|||||||
y3 = (lambda * (x1 - x3) - y1) % p
|
y3 = (lambda * (x1 - x3) - y1) % p
|
||||||
return x3,y3
|
return x3,y3
|
||||||
end
|
end
|
||||||
|
# P + -Q = 0 DZIALA
|
||||||
|
if (x1 == x2) && (y1 == y2%p)
|
||||||
|
#puts "0 - el.neutralny"
|
||||||
|
return "e","e"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#### MODULE 3 ####
|
#### MODULE 3 ####
|
||||||
|
Loading…
Reference in New Issue
Block a user