[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.8789948 [View]
File: 685 KB, 495x378, AKU IS DISGUSTED.gif [View same] [iqdb] [saucenao] [google]
8789948

>>8789935
Okay... So in RPN, that would be

5 1 + 8 2 - *

I'm asking this because I implemented a RPN calculator using stacks (evaluating two numbers and an operator and inserting it back in to the top of the stack) to get answers. I just realized that I might not be able to express ( (5+ 1) * (8 - 2) ) using my method

God damn it I hate designing algorithms that almost work but not quite because of a fatal flaw.

Navigation
View posts[+24][+48][+96]