An abstract function interface for make math formula expression evaluation