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

Btw, didn't you like my recursive descent solution ?

Replies are listed 'Best First'.
Re^4: Reverse Polish Notation Question
by nat47 (Sexton) on May 01, 2015 at 21:17 UTC
    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

      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