瀏覽代碼

add a comment to binary quadratic forms example

x 3 年之前
父節點
當前提交
41824e5fdd
共有 1 個文件被更改,包括 2 次插入0 次删除
  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)):