# Are RPN Calculators dead and buried? R U Happy or sad?

**URL:** <https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138>\
**Category:** In My Humble Opinion\
**Created:** [July 21, 2013, 10:06pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138 "2013-07-21T22:06:27Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![aceplace57](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/aceplace57/32/3500_2.png) [@aceplace57](https://boards.straightdope.com/u/aceplace57)\
**Post date:** [July 21, 2013, 11:25pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/21 "2013-07-21T23:25:41Z")

</div>

Thanks allyn. That’s a good example how you’d enter it on a RPN calculator.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [July 21, 2013, 11:26pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/22 "2013-07-21T23:26:31Z")

</div>

> [@allyn](#):
>
> 2  
> \<enter\> ;push on stack  
> 8  
> \<enter\> ;push on stack  
> 9  
> \<enter\> ;push on stack  
> 3  
> / ;=3
> 
> - 
> 
> ```
> ;=11
> 
> ```
> 
> - 
> 
> ```
> ;=22
> 
> ```
> 
> 40  
> \<enter\> ;push on stack  
> 8  
> / ;=5
> 
> - 
> 
> ```
> ;=110
> 
> ```

> [@Giles](#):
>
> 2, 8, 9, 3, divide, add, multiply, 40, 8, divide, multiply

Well, **aceplace57** ’s expression 2((8 + 9/3) \* (40/8)) would most directly correspond to 2, 8, 9, 3, /, +, 40, 8, /, \*, \*.

What you’ve written corresponds instead directly to (2(8 + 9/3)) \* (40/8).

Since multiplication is associative, the final answer is the same, but the expression-tree is different. The parentheses in the original expression indicate that the multiplication of 2 by everything else should be done last.

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [July 21, 2013, 11:28pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/23 "2013-07-21T23:28:16Z")

</div>

> [@aceplace57](#):
>
> Lets try this one 2((8 + 9/3) \* (40/8))
> 
> yeah, we can do it in our head. 110 But play along.
> 
> Someone care to show it in RPN?

I’m getting: 2 8 9 3 / + \* 40 8 / \*  
(Note that the operands appear, left to right, in the same order as in the in-fix original.)  
Anybody agree? Disagree? This is just more-or-less off the top of my pointy head.

Grokking PN or RPN: It really helps if you had a [WFF 'N PROOF](http://www.oercommons.org/authoring/1364-basic-wff-n-proof-a-teaching-guide/view) game as a kid.

Something I noticed: Computer Science types, of course, are all just gaga about RPN. Like, they can’t imagine why anyone would write expressions any other way! (That includes myself, mostly.)  
But I noticed, in talking to various math professors, that math professors mostly didn’t like, or didn’t understand, or didn’t appreciate Polish notation.

(And don’t even get started about Hungarian notation, which apparently got [totally bastardized by Microsoft](http://www.joelonsoftware.com/articles/Wrong.html), even though it was invented there!)

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [July 21, 2013, 11:31pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/24 "2013-07-21T23:31:05Z")

</div>

> [@Indistinguishable](#):
>
> Well, **aceplace57** ’s expression 2((8 + 9/3) \* (40/8)) would most directly correspond to 2, 8, 9, 3, /, +, 40, 8, /, \*, \*.
> 
> What you’ve written corresponds instead directly to (2(8 + 9/3)) \* (40/8).

Ah, so! I mis-read the parentheses also in my version. **Indistinguishable** has it right.

ETA: All the more argument for doing away with those damnable parentheseseses!

---

<div class="post-metadata">

**Author:** ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)\
**Post date:** [July 21, 2013, 11:31pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/25 "2013-07-21T23:31:12Z")

</div>

> [@allyn](#):
>
> 2  
> \<enter\> ;push on stack  
> 8  
> \<enter\> ;push on stack  
> 9  
> \<enter\> ;push on stack  
> 3  
> / ;=3
> 
> - 
> 
> ```
> ;=11
> 
> ```
> 
> - 
> 
> ```
> ;=22
> 
> ```
> 
> 40  
> \<enter\> ;push on stack  
> 8  
> / ;=5
> 
> - 
> 
> ```
> ;=110
> 
> ```

While that would work, aren’t you bringing that first \* (to multiply by 2) in a bit too early to literally correspond to **aceplace** ’s expression? That is, that final \* should be by the initial two that you first entered on the stack.

So, I see:

2((8 + 9/3) \* (40/8))

2 8 9 3 / + 40 8 / \* \*

ETA: While double checking my answer, it looks like I got ninja’ed by a few!

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [July 21, 2013, 11:36pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/26 "2013-07-21T23:36:22Z")

</div>

> [@Indistinguishable](#):
>
> What you’ve written corresponds instead directly to (2(8 + 9/3)) \* (40/8).

Yes, you’re right – I ignored a pair of brackets that I shouldn’t have.

---

<div class="post-metadata">

**Author:** ![aceplace57](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/aceplace57/32/3500_2.png) [@aceplace57](https://boards.straightdope.com/u/aceplace57)\
**Post date:** [July 21, 2013, 11:40pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/27 "2013-07-21T23:40:10Z")

</div>

COBOL has add, subtract, multiply, divide functions. Pretty much like you describe. I use them often. There’s also the compute statement that lets you enter a formula.

I’d use the compute here. compute x = 2((8 + 9/3) \* (40/8)).

with effort I could break it up into multiple statements with the other functions.

> [@Indistinguishable](#):
>
> **aceplace57** , suppose we wrote Add(x, y) instead of x + y, Mult(x, y) instead of x \* y, etc., in the same way that we talk about all the functions that we haven’t bothered to make up special symbols for.
> 
> Do you think you could write “2((8 + 9/3) \* (40/8))” in that syntax?

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [July 21, 2013, 11:47pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/28 "2013-07-21T23:47:22Z")

</div>

Ok, **aceplace57** , if you can use add(x, y), mult(x, y), etc., you know how to use Forward Polish Notation. That’s all Forward Polish Notation amounts to; writing “add(x, y)” instead of “x add y” [putting the operation in front of its arguments, rather than between them].

Go ahead; actually give it a shot. How would you write 2((8 + 9/3) \* (40/8)) in that setup?

[spoiler]2((8 + 9/3) \* (40/8)) would become mult(2, mult(add(8, div(9, 3)), div(40, 8))).

Reverse Polish notation is just a slight change on that: since you evaluate the arguments before evaluating the result of the function they are passed to, you might argue that you should write the arguments before the function name, rather than the other way around.

If we did this, writing (x, y)add, (x, y)mult, etc., instead of add(x, y), mult(x, y), etc., then  
2((8 + 9/3) \* (40/8)) would become (2, ((8, (9, 3)div)add, (40, 8)div)mult)mult.

That’s reverse Polish notation, right there (but we can go ahead and remove all the parentheses, if we want to, since they don’t actually contribute any non-redundant information).  
[/spoiler]

---

<div class="post-metadata">

**Author:** ![aceplace57](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/aceplace57/32/3500_2.png) [@aceplace57](https://boards.straightdope.com/u/aceplace57)\
**Post date:** [July 21, 2013, 11:58pm UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/29 "2013-07-21T23:58:46Z")

</div>

I got it. finally. It’s the same format as Excel formulas. Although it usually takes me a few tries to get the syntax right in Excel.

Thanks.

---

<div class="post-metadata">

**Author:** ![BrotherCadfael](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@BrotherCadfael](https://boards.straightdope.com/u/BrotherCadfael)\
**Post date:** [July 22, 2013, 12:07am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/30 "2013-07-22T00:07:10Z")

</div>

My HP 16C, purchased in 1982, works just as well now as it ever did. I am so used to RPN, I have trouble when I try to use a conventional calculator. Fortunately, it isn’t much of a problem, because, as noted upthread, I don’t use calculators much any more for anything beyond adding two or three numbers - anything more than that and I fire up a spreadsheet.

---

<div class="post-metadata">

**Author:** ![Dewey\_Finn](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dewey_finn/32/4222_2.png) [@Dewey\_Finn](https://boards.straightdope.com/u/Dewey_Finn)\
**Post date:** [July 22, 2013, 12:30am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/31 "2013-07-22T00:30:35Z")

</div>

> [@Knorf](#):
>
> In fact, the venerable Hewlett-Packard RPN models [12C](http://www.shopping.hp.com/en_US/home-office/-/products/Accessories/Calculators/12C) and [15C](http://www.amazon.com/HP-NW250AA-15C-Scientific-Calculator/dp/B005EIG3MW) are still available.

The 12c is available regularly, but the 15c was only released in a “limited edition” a couple of years ago. I bought it during the second round, for about a hundred bucks. Presumably the Amazon seller you linked to bought up a bunch of them but there’s only a limited supply.

---

<div class="post-metadata">

**Author:** ![aceplace57](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/aceplace57/32/3500_2.png) [@aceplace57](https://boards.straightdope.com/u/aceplace57)\
**Post date:** [July 22, 2013, 12:51am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/32 "2013-07-22T00:51:57Z")

</div>

I preferred the regular calculators because you could enter the formula directly off the page. I did have to enter the implied \* to get windows calculator to do the final multiplication by 2 and of course press = But I finally got it to give the right answer. (I always miss-key trying to using Win calculator)

With RPN calculators you have to convert the operations in your head as you enter them. I recall watching friends in college using their HP RPN calculators. I never owned one.  
2((8 + 9/3) \* (40/8))

---

<div class="post-metadata">

**Author:** ![InternetLegend](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/internetlegend/32/13154_2.png) [@InternetLegend](https://boards.straightdope.com/u/InternetLegend)\
**Post date:** [July 22, 2013, 12:56am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/33 "2013-07-22T00:56:16Z")

</div>

It’s funny - I’ve never been a “math person” and I’ve never done any programming. I’m even a little shaky doing formulas in Excel. But RPN, from the moment I first encountered it, has always made sense to me. I didn’t realize you could change the function on your computer or phone calculator to use it; I’ll have to look into that.

---

<div class="post-metadata">

**Author:** ![aceplace57](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/aceplace57/32/3500_2.png) [@aceplace57](https://boards.straightdope.com/u/aceplace57)\
**Post date:** [July 22, 2013, 1:08am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/34 "2013-07-22T01:08:30Z")

</div>

I wonder if Excel will take RPN notation?

I use Excel if I’m doing anything important. You can enter a equation and actually confirm there are no typos. No extra or missing parenthesis etc. I like seeing the whole equation I entered because then I can trust the result.

It took three tries before I got win calculator to give me the right answer. typos and bad mouse clicks did me in. You can’t even confirm the entire equation you entered. win calculator is frustrating for anything beyond simple arithmetic.

---

<div class="post-metadata">

**Author:** ![Dewey\_Finn](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dewey_finn/32/4222_2.png) [@Dewey\_Finn](https://boards.straightdope.com/u/Dewey_Finn)\
**Post date:** [July 22, 2013, 1:28am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/35 "2013-07-22T01:28:43Z")

</div>

In what is possibly a demonstration of just how nerdy my crowd in college was, we actually had “races” (giving the same formula to two people) to determine which was faster: RPN calculators or algebraic notation calculators. For the record, RPN was faster.

---

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [July 22, 2013, 1:53am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/36 "2013-07-22T01:53:48Z")

</div>

I still have, and use at work, my HP 15C calculator. It’s got to be pushing 30 years old by now. My wife still uses her HP 11C.

All of the buttons on both of them still work as well as when they were new, which is kind of amazing when i think about it.

Just for the record, I would have done 2((8 + 9/3) \* (40/8)) as  
8 enter 9 enter 3 / + 40 \* 8 / 2 \*

Because I’m not fanatical about order of operations.

ETA: Or maybe even  
8 enter 9 enter 3 / + 5 \* 2 \*

Scandalous!

---

<div class="post-metadata">

**Author:** ![dropzone](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dropzone/32/7515_2.png) [@dropzone](https://boards.straightdope.com/u/dropzone)\
**Post date:** [July 22, 2013, 2:52am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/37 "2013-07-22T02:52:01Z")

</div>

I don’t know how (I went through a period of buying lots–literally lots–of old calculators), where (probably eBay), or when (sometime after 2000 'cuz that’s when they started making them) I got my HP 30S, but I got it running yesterday and found that, despite the ENTER key in the bottom corner, it uses algebraic entry. ☹ Have to find my Novus Scientific from about 1976 in one of these boxes if I want to use a calculator without equal, as old HP ads said. Its battery cover is less than a foot from my left knee and I have several 9v batteries to feed its lust for power.

---

<div class="post-metadata">

**Author:** ![user\_hostile](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/user_hostile/32/474_2.png) [@user\_hostile](https://boards.straightdope.com/u/user_hostile)\
**Post date:** [July 22, 2013, 3:32am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/38 "2013-07-22T03:32:29Z")

</div>

> [@Dewey\_Finn](#):
>
> The 12c is available regularly, but the 15c was only released in a “limited edition” a couple of years ago. I bought it during the second round, for about a hundred bucks. Presumably the Amazon seller you linked to bought up a bunch of them but there’s only a limited supply.

The 15C calculator is beat all to hell, but is still kicking after 32 years. It’s pretty slow, but in most cases, it makes it easier to debug when I’m writing programs.

Once I figured out the RPN, I never could go back to old school. FWIW, I found I could enter more data for less keystrokes. I still have trouble when I have use conventional calculators, because I keep looking for the “ENTER” key.😛

I’ve had others: TI, Unisonic, Casio along with other long-extinct brands, and the calculator keys were always the first to go (no entry, double or triple entry, etc.). That was never (and still is) the case with the HP–never gave me a hiccup. It’s safe to say I’ve probably hit those keys at least a quarter million times while in college and continuing till this day.

Sad to say, when I excitedly tried out the new 15C Limited Edition, I found it to be a hugh disappointment–the keys felt like you were pushing cow tits. It’s like announcing the 100th anniversary edition of the Cadillac, only to find you have a Chevy Chevette suspension. Quite an inept move on HP’s part :smack:.

---

<div class="post-metadata">

**Author:** ![Ranger\_Jeff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ranger_jeff/32/2065_2.png) [@Ranger\_Jeff](https://boards.straightdope.com/u/Ranger_Jeff)\
**Post date:** [July 22, 2013, 3:33am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/39 "2013-07-22T03:33:18Z")

</div>

My HP 15C still works fine. It’s close to 30 years old now.

---

<div class="post-metadata">

**Author:** ![Dewey\_Finn](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dewey_finn/32/4222_2.png) [@Dewey\_Finn](https://boards.straightdope.com/u/Dewey_Finn)\
**Post date:** [July 22, 2013, 3:44am UTC](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138/40 "2013-07-22T03:44:44Z")

</div>

I had an HP 15c that I bought in the college bookstore around 1985 but I lost it about twenty years ago. But I was able to buy the “limited edition” version that HP sold a couple of years ago. There’s also an iPhone app that mimics a 15c but it’s about thirty bucks.

[Previous page](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138.md?page=1)

[Next page](https://boards.straightdope.com/t/are-rpn-calculators-dead-and-buried-r-u-happy-or-sad/664138.md?page=3)
