News for hackers. Stuff that matters.
Re:The early history of HP calculators by waynecochran on Sunday September 10, 2017 @10:14AM (#15212289)
When I started college in 1985, every Physics student had an HP41C. You were at a distinct disadvantage on an exam if you had an infix calculator. I still have my HP41CX that my dad bought me in 1985.

Now I don't see any of the students using them. What happened? When I used to teach, I would write a large expression on the board and challenge students to a calculator duel -- me using my 1985 HP41CX and them using their lumbering infix calculator. I would always win.

The magic is the automatic saving of subexpressions on a stack. Once you got the hang of it, you would never want to go back to an infix calculator.

I have the HP41C app on my iPhone, but you miss the beautiful haptic feedback keys that the HP calc's had.

Actually, the very first programming course I ever took was a 2 credit course called "Programming Calculators" and we learned to program to the HP41. When a program was running, a little "bird" glyph would "fly" flom left to right across the LCD screen. I remember writing a program to get the bird to fly backwards. Silly, but fun.

Of course I had the Math Module that you could plug in and the magnet card reader. Anyway, I always wondered what happened in the intervening time that no one seems to use them anymore.

Re:The early history of HP calculators by hota_mazi on Sunday September 10, 2017 @12:40PM (#15212953)
> The magic is the automatic saving of subexpressions on a stack. Once you got the hang of it, you would never want to go back to an infix calculator

I was one of these smug HP calculator owners back in high school and college. I loved it and spent hours hacking on it (and also secretly enjoyed the fact that nobody borrowed it since hardly anyone knew how to use it).

Years later, I started realizing that the reason why these calculators do take fewer keypresses to make calculations is because they borrow your brain to assist them.

For example, you see `3 * (2 + 4)` and your brain has to identify the most nested parenthesis expression, type that in and work your way out. It works well enough for simple expressions but doesn't really scale very far beyond that.

Remember this SETI program that used people's idle CPU's to scan sky pictures? I felt HP calculators had been pulling the same trick by borrowing your brain to calculate their expressions.

I felt that I had been cheated but I wasn't really mad about it because I loved these calculators so much.

Re:The early history of HP calculators by ScottBurson on Sunday September 10, 2017 @02:48PM (#15213624)
I don't think that's fair. Either form requires some mental stack space to convert to the other form. It's just that people are more used to reading and writing infix.
Re:The early history of HP calculators by dm319 on Sunday September 10, 2017 @03:00PM (#15213705)
Yes, I find complex equations to be far easier to calculate in RPN. Even if you get stuck you have a useful intermediate. On algebraic I find I'm having to back pedal to sort out parentheses for lower order operators.
Re:The early history of HP calculators by antod on Sunday September 10, 2017 @06:03PM (#15214529)
Agreed. Although getting a multiline display like the 42S or (gasp) 48S helped a lot with keeping track of the stack.

edit: 42S not 42C

Re:The early history of HP calculators by hota_mazi on Sunday September 10, 2017 @06:08PM (#15214550)
For regular notation, you just type all the characters as you read them, including parentheses. This requires less mental activity on the person, as opposed to RPN, which forces you to first parse the entire expression and identify the most nested expression and process outward from that point on.
Re:The early history of HP calculators by xelxebar on Sunday September 10, 2017 @08:58PM (#15215130)
I'm not sure about the 41C, but I have a 32SII and you don't need to process "from the inside out".

When you encounter an open parenthesis, then you just push the following number onto the stack, when you encounter a close parenthesis, you just perform the relevant arithmetic operation.

For the example

    2 * (3 + 4)
we can do this

    Input            Stack
    2                   2
    3                   3,2
    4                   4,3,2
    +                   7,2
    *                   14
Re:The early history of HP calculators by hota_mazi on Sunday September 10, 2017 @10:57PM (#15215570)
It works here because the expression is simple. You only have four variables on the stack (maybe more in later models that I'm not aware of) and for those, you are screwed if you just push things on the stack in reading order:

    2 * (3 + (4 + (5 + (6 + 7))
The only way to process this is to determine the most nested expression and start there:

    6 7 + 5 + 4 + 3 + 2 *
... you get the idea.

Expand this expression with multiple deeply nested parens and the limitations of RPN become very obvious.

Re:The early history of HP calculators by ScottBurson on Monday September 11, 2017 @01:52AM (#15216270)
I'm pretty sure the more recent, higher-end RPN calculators have lots more than 4 stack slots.

4 is usually enough in practice anyway. Your example is artificial.

Besides, are you sure your infix calculator will accept this deep a nesting of parentheses? The TI models that were contemporary with the early HPs certainly wouldn't!

Re:The early history of HP calculators by grzm on Sunday September 10, 2017 @06:16PM (#15214583)
Anecdote, but I was surprised to find that my father (who used his HP with RPN extensively) found "normal" calculators more difficult to use. At the end of the day I think it comes down to what you're used to. Requiring more or less mental activity can come down to how closely the activity matches what one is comfortable with.
Re:The early history of HP calculators by CamperBob2 on Sunday September 10, 2017 @02:54PM (#15213663)
The magic is the automatic saving of subexpressions on a stack. Once you got the hang of it, you would never want to go back to an infix calculator.

Of course, you're comparing the HP41C to bad infix calculators, early ones that didn't support algebraic order of operations or explicit parentheses.

It's worth remembering that postfix calculators exist not because they were ever the right thing to do, but because they were easier to implement with limited computing power. Forcing the user to keep track of the stack context was a clever hack on HP's part, but is no longer necessary or justifiable. And that's why you don't see many new postfix calculators these days.

Re:The early history of HP calculators by waynecochran on Sunday September 10, 2017 @10:39PM (#15215520)
I'll still beat anyone w an infix calc.
Re:The early history of HP calculators by CamperBob2 on Monday September 11, 2017 @03:07AM (#15216599)
It would make a good demo to point to on YouTube when these debates come up, certainly.

Closest thing I can recall was the contest that pitted a texting teenager against an experienced ham radio operator with a telegraph key...

Re:The early history of HP calculators by jhbadger on Sunday September 10, 2017 @10:59AM (#15212460)
Basically after the merger with Compaq in 2001, HP lost interest in their calculators. They still technically sell them, but they aren't advertised to any degree. Obviously since the advent of the smartphone the need for dedicated calculators is lessened, but as you say, the haptic feedback is nice and TI seems to be still selling a lot of calculators.
Re:The early history of HP calculators by keenerd on Sunday September 10, 2017 @11:36AM (#15212644)
They were dying long before smartphones. Cheap Casio calculators happened. I have a little $15 Casio scientific calculator and it has been all that I've needed for college and professional work. But it can take integrals, derivatives and has a general newtonian solver. It covers everything except matrices. Those are miserable to do on any calculator so I'm not missing much.

In all my life I've only ever seen two HP RPN calculators. One belonged to my high-school chem teacher, the other to a real estate agent. If there were a $30 RPN calculator with similar functions, I would use it.

Edit: 18 years later and they still make it, https://www.casio.com/products/calculators/fraction-and-scie...

Edit2: Looks like the most readily available RPN calculators are the HP 35S ($55) and HP 12C ($50).

Re:The early history of HP calculators by tragomaskhalos on Sunday September 10, 2017 @03:01PM (#15213712)
Yup - among us maths geeks at school in the 80s the HPs - especially the 41 - were the Rolls Royce of calculators, beautiful machines that few could afford, although even the high end programmable Casio that I settled for was pretty pricey.
Re:The early history of HP calculators by LanceH on Sunday September 10, 2017 @11:43AM (#15212681)
I would say it was the tight integration of the TI8* into the classroom that did it. Everyone's first scientific calculator was more or less required by some course.
Re:The early history of HP calculators by dm319 on Sunday September 10, 2017 @03:07PM (#15213735)
>What happened?

I don't get it either. Even if HP lost interest, why didn't anyone continue with RPN (patents, maybe?).

I think RPN is both better for learning at school (you see intermediates, and you learn operator order), as well as general use. I love that you can just get stuck in calculating without having to worry about getting it all in the right order at first.

I'd love my children to use RPN when they reach that age, but there is a lack of RPN calculators on the market, a lack of knowledge at school and it may even be banned by the time they need to take an exam.

Re:The early history of HP calculators by CamperBob2 on Monday September 11, 2017 @02:19PM (#15220784)
I love that you can just get stuck in calculating without having to worry about getting it all in the right order at first.

Even better if I don't have to worry about it at all. That's why I'm using a calculator in the first place, and not scribbling figures by hand on a piece of paper.

Re:The early history of HP calculators by joezydeco on Sunday September 10, 2017 @05:42PM (#15214451)
What happened is every high school mandating the use of the TI-35 and their brethren, making sure those kids are so used to working with infix calculators that they never approach an RPN.