Lines Matching refs:gen
61 func gen(n int) *Number {
63 return add1(gen(n - 1))
90 check(gen(10), 10)
92 check(add(gen(3), zero()), 3)
93 check(add(zero(), gen(4)), 4)
94 check(add(gen(3), gen(4)), 7)
97 check(mul(gen(3), zero()), 0)
98 check(mul(zero(), gen(4)), 0)
99 check(mul(gen(3), add1(zero())), 3)
100 check(mul(add1(zero()), gen(4)), 4)
101 check(mul(gen(3), gen(4)), 12)
105 check(fact(gen(5)), 120)
115 print(i, "! = ", count(fact(gen(i))), "\n")