Explorar o código

add a comment to binary quadratic forms example

x %!s(int64=3) %!d(string=hai) anos
pai
achega
41824e5fdd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      script/research/zk/binary-quadratic-forms.sage

+ 2 - 0
script/research/zk/binary-quadratic-forms.sage

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