implement math_pow10()
implement math_log10()
use math_log10()
adjust Makefile for math functions