nitpick for floats use math.sqrt and math.log not numpy.