so fac(torial) is working but superfactorial is not.
meh im a beginner LISPer and this is just confuses me still.
superfactorial is sf(4)!= 1!2!3!4! = 288
in python it is:
def superfactorial(nbr):
y=1
for x in range(1,nbr+1):
y=yfactorial(x)
return y i think i am doing that in sufac in Arc but apparenlty im not because i get much bigger answers.
help the noob please. (def fac(n)
(if (is n 0)
1
(* n (fac(- n 1))))) (def sufac (n)
(let y 1
(for x 1 (+ n 1)
(= y (* y (fac n))))
y)) |