if you want to calc log(b)a (log of a to the base of b) you can do: (log(c)a)/(log(c)b) where c can be anything (not 1 or 0...) so they told you that in math.h you have log of x to the base of 10 so if you to calculate log(b)a you can use the log function like this: log(a)/log(b). that's all.