Algebraic HP calculators, hierarchy of operations.

04042021, 11:17 PM
(This post was last modified: 04062021 08:29 PM by Vtile.)
Post: #1




Algebraic HP calculators, hierarchy of operations.
Hello! For resent topic of mine I actually found new thing to me that the hierarchy of operations is so much depated subject. What is the hierarchy of operation in HP algebraic (or RPN+ALG). Is it PEMDAS or PEJMDAS or do not allow at all.
Test expression used and PEMDAS/PEJMDAS as seen on video. (Note that video is somewhat opinionated for PEJMDAS, but informative.) https://youtu.be/4xBcYCiKCk Video do use expression: \begin{equation} \frac{1}{2\sqrt{3}} \end{equation} Typed in as key sequence: [1] [/] [2] [Sqrt] [3] [=] Ie. HP50g do give invalid syntax when the algebraic expression shown in video is entered as algebraic expression (as is written on video without user added parenthesis or operators) through the stack (which is actually nice), with EQW it is giving the correct formatting and added parentheses at right position (as is logical). I do not want to start flame war here, there seems to be two interpretations differing for variety of reasons. Edit. Added LaTeX for test equation. 

04052021, 12:23 AM
(This post was last modified: 04052021 12:23 AM by Joe Horn.)
Post: #2




RE: Algebraic HP calculators, hierarchy of operations.
(04042021 11:17 PM)Vtile Wrote: What is the hierarchy of operation in HP algebraic (or RPN+ALG). Is it PEMDAS or PEJMDAS or do not allow at all. There is no single answer to that question. Different HP models use different rules. For example, the HP 300S returns sqrt(3)/2 whereas the HP 300S+ returns sqrt(3)/6. Also, as you noticed, some HP models don't allow implied multiplication at all. <0ΙΈ0> Joe 

04052021, 03:29 AM
Post: #3




RE: Algebraic HP calculators, hierarchy of operations.
Both TI and Casio have changed how they handle the priority of implied multiplication over the years. TI issued the following guidance regarding which TI graphing models treat implied multiplication with a higher priority.
https://epsstore.ti.com/OA_HTML/csksxvm....tId=103110 

04052021, 08:23 AM
(This post was last modified: 04052021 08:25 AM by Vtile.)
Post: #4




RE: Algebraic HP calculators, hierarchy of operations.
I do understand. Thank you for information. Is there any kind of time window when and how HP did use logic or another to parse algebraic entry.
I would assume from my current understanding ie. that early pioneer series would have used higher priority implicid multiplication. Then with same or other models at some point removed this extra layer used for grouping at paper (at some branches of mathematic). Etc. 

04052021, 09:59 AM
(This post was last modified: 04052021 10:05 AM by Steve Simpkin.)
Post: #5




RE: Algebraic HP calculators, hierarchy of operations.
(04052021 08:23 AM)Vtile Wrote: I do understand. Thank you for information. Is there any kind of time window when and how HP did use logic or another to parse algebraic entry. I can't confirm for all of the Pioneer models that use algebraic entry but the HP20S and HP22S do not support implied multiplication. The HP 35S does support implied multiplication but does not give it priority. 

04052021, 05:50 PM
(This post was last modified: 04052021 05:50 PM by Rick314.)
Post: #6




RE: Algebraic HP calculators, hierarchy of operations.
The HP 10bII+ allows setting "Chain" mode (the default, 2 + 3 * 4 = 20) or "Algebraic" mode (2 + 3 * 4 = 14). It is a nonRPN calculator except for specific 2input functions. 100 INPUT 125 %CH = 25, but 2 INPUT 3 y^x = <pending input, no answer yet>. Also functions +  * / do not work with INPUT, but dDAYS, DATE, nCr, nPr, df,t<>P, INV df,t<>P do work with INPUT. Clear as mud!


04052021, 10:28 PM
(This post was last modified: 04052021 10:43 PM by Vtile.)
Post: #7




RE: Algebraic HP calculators, hierarchy of operations.
(04052021 05:50 PM)Rick314 Wrote: The HP 10bII+ allows setting "Chain" mode (the default, 2 + 3 * 4 = 20) or "Algebraic" mode (2 + 3 * 4 = 14). It is a nonRPN calculator except for specific 2input functions. 100 INPUT 125 %CH = 25, but 2 INPUT 3 y^x = <pending input, no answer yet>. Also functions +  * / do not work with INPUT, but dDAYS, DATE, nCr, nPr, df,t<>P, INV df,t<>P do work with INPUT. Clear as mud! I can see where the "chain" mode comes as an some accounting etc, it's a "rolling sum". Input accumulator is lifted to answer accumulator for every operator so actually the expression follows rule "Do bending operation to previous answer" kind of two level rpn stack with obviously infix operator... That HP11bII+ must be like close to classic semi algebraic (there was real word for this input scheme I have sometimes seen here relating old TIs from 70s) 4function calculators with a twist? I would assume it do not allow entry as one chunk ie.. '1+2+3' [ENTER or =] resulting answer. I was more interested from machines which do take input as whole expression until input confirmation. As with that "whole expression as once" scheme the machine do part of the interpretation of expression, while machine with partial results usually do left the interpretting job to user (user is the master, calc is rather dumb slave and some try to be smart and confuse master)... Fair enough I was not particularly clear of my original wording. I do try to have time tomorrow to use some LATEX and proper editing the first post. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)