Do math in RPN using the command line tool rpn or in Ruby