Publisher review:Factorial Numbers extends the integer type, giving all integers the ability to factorial themselves. This snippet extends the integer type, giving all integers the ability to factorial themselves.
It includes both recursive and iterative versions: while the recursive method is arguably cleaner, for larger factorials you might run into a SystemStackError: stack level too deep error in Ruby; in that case, you’ll want to use the iterative version.
Factorial Numbers is a Ruby script for Mathematics scripts design by Arto Bendiken.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris