RPN (Reverse Polish Notation) command line calculator
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rvmrc
Gemfile
LICENSE
README.md
Rakefile
reverse-polish-calculator.gemspec

README.md

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