mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
add a comment to binary quadratic forms example
This commit is contained in:
@@ -6,6 +6,8 @@ def is_reduced(f):
|
||||
a, b, c = f
|
||||
return is_normal(f) and (a < c or (a == c and b >= 0))
|
||||
|
||||
# Action of SL₂(ℤ) on a form (x y)ᵗ
|
||||
# This also will always terminate on the final reduced form in a class
|
||||
def reduce(f):
|
||||
a, b, c = f
|
||||
while not is_reduced((a, b, c)):
|
||||
|
||||
Reference in New Issue
Block a user