A Math Compiler