A computational hack for double factorials

In computing, multiplication is fairly expensive in terms of processing time. This is a hack to reduce the amount of multiplication required to calculate a double factorial. A double factorial is basically the product of a series of consecutive odd or even numbers. So 1 x 3 x 5 x 7 or 2 x 4 […]

Continue reading →