1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

fix integration tests

This commit is contained in:
schaeff 2022-06-15 15:52:26 +02:00
parent d8d082b649
commit 88ae13f80d

View file

@ -2,8 +2,8 @@ import "utils/casts/u32_to_field" as to_field
// Binomial Coeffizient, n!/(k!*(n-k)!).
def fac(field x) -> field:
field f = 1
field counter = 0
field mut f = 1
field mut counter = 0
for u32 i in 1..100 do
f = if counter == x then f else f * to_field(i) fi
counter = if counter == x then counter else counter + 1 fi