Change math.log to numpy.log