use reverse polish notation parsing math equations.