User Tools

Site Tools


This is an old revision of the document!


Factorial

Recursive

:<math> n! = \begin{cases} 1 & \text{if } n = 0,
(n-1)!\times n & \text{if } n > 0. \end{cases} </math>

λ Factorial_(recursive)

Iterative

:<math> n!=\prod_{k=1}^n k \!</math>

λ Factorial_(iterative)

factorial.1348939867.txt.gz · Last modified: 2015/02/02 08:24 (external edit)