Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 596 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 596 Bytes

RPNtool

Infix to RPN and back

This is a perl script to transform infix mathematical expressions into Reverse Polish Notation (RPN).

I created this perl script to help enter these expressions into my HP 28c RPN calculator (yes it is a museum piece but it got me through university :) )

Requirements:

As a user I want the ability to: Specify infix mathematical expressions, and have a RPN sequence (postfix expression) returned. The following arthimetic operators shall be recognized: + - * / ^ (exponent) The following mathematical functions shall be recognized: sin cos tan log ln