in reply to Re^3: Reverse Polish Notation Question
in thread RPN Question

It was incredibly good, I'm just trying to learn Perl and also tried this problem with RPN. Although, now I'm worried I did the RPN calculation wrong

Replies are listed 'Best First'.
Re^5: Reverse Polish Notation Question
by Anonymous Monk on May 01, 2015 at 21:22 UTC

    Your equation 2(4x-8)+3x=11x+1-9 is bad, x cancels out.

      Whoops... I think my RPM code should actually be working okay 3 x 1 - * 2 x * 1 - - for 3(x-1)=2x-1