Doing 'log' maths without a log function

log10() is part of math.h. Is there a reason you cannot use that?