No commit activity in last 3 years
No release in over 3 years
Command line RPN (Reverse Polish Notation) calculator
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
>= 0
>= 0
 Project Readme

reverse-polish-calculator

This is a RPN (Reverse Polish Notation) command line calculator. It supports arithmetic, and most of the methods in Ruby's Math module.

Synopsis

$ rpc
$ 5 # => stack: 5.0
         aggregate: 0
$ 5 # => stack: 5.0, 5.0
         aggregate: 0
$ + # => calculated: 5.0 + 5.0
         stack: 
         aggregate: 10.0

For more examples, check out the acceptance specs.

Installation

gem install reverse-polish-calculator

License

reverse-polish-calculator is released under the MIT license. See LICENSE for details.

Copyright

Copyright (c) 2011 Justin Ko