factorial iterative Algorithm

(possibly the earliest publication to use double factorial notation) states that the double factorial was originally introduced in order to simplify the expression of certain trigonometric integrals arise in the derivation of the Wallis merchandise. The term odd factorial is sometimes used for the double factorial of an odd number.

factorial iterative source code, pseudocode and analysis