Explorar o código

improve halo2.sage doc

narodnik %!s(int64=4) %!d(string=hai) anos
pai
achega
1a901f50de
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      script/research/halo/halo2.sage

+ 8 - 0
script/research/halo/halo2.sage

@@ -40,6 +40,14 @@ n = 2^k
 omega = omega^(2^32 / n)
 assert omega^n == 1
 
+# def foo(s, x, y):
+#   if s:
+#       return x * y
+#   else:
+#       return x + y
+
+# z = foo(s, x, y)
+
 # Arithmetization for:
 # sxy + (s - 1)(x + y) - z = 0
 # s(s - 1) = 0