I stumbled upon this formula in a book the other day and set about coding it in C from scratch. At the end of the day any summation can be easily turned into a for loop.
I also wrote my own functions for exponential, combinatorial numbers and factorial.
