expose mathfun_exec and speedup wavegen using it directly