OSX doesn't have exp10, replace by pow