add a comment to binary quadratic forms example

This commit is contained in:
x
2023-03-10 09:41:01 +01:00
parent 2dafb9fd24
commit 41824e5fdd

View File

@@ -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)):