Generate AST nodes for some math functions