reverse-polish-notation

0.1.0 • Public • Published

node-reverse-polish-notation Build Status

Reverse Polish Notation - Native Javascript implemenation

Installation

npm i reverse-polish-notation

Usage

** see code samples in ./test directory **

var rpn = require('reverse-polish-notation')
console.log(rpn('5 1 2 + 4 * + 3 -')) // prints "14"
console.log(rpn('3 4 5 * -')) // prints "-17"
console.log(rpn('3.1 -4.3 5.6 * -')) // prints "27.18"

References

License

MIT

Package Sidebar

Install

npm i reverse-polish-notation

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • runk