takes any mathematical algebraic equation and converts it into reverse polish notation