I'm trying to generate random numbers with a Cellular Automata. For this, I implement a Genetic Algorithm which find the best rule for the Automata's cells. The Genetic Algorithm evaluate the rules, but it needs to use the two-base logarithm, and the lybrary

*math.h*don't implement this function.

Does exist any library that implement n-base logarithm?

Thanks.