Evolution of Conditional Tests
|
01-03-2020, 11:41 PM
Post: #3
|
|||
|
|||
RE: Evolution of Conditional Tests
My guess would be that they provided eight tests on most of the early calculators because that number could be placed on the keyboard reasonably elegantly, and the choice of which tests were provided probably went something like this: for the comparisons between X and Y, provide one strict and one non-strict inequality, so the missing two can be easily synthesized by swapping X and Y; for the comparisons between X and 0, provide only strict inequalities, because those are used more often than the non-strict ones. N.B. I don't have any inside information on this, I'm just guessing... the differences between the comparison operators are something that I have wondered about many times, and of course they are something one tends to run into when porting programs from one calculator to another!
The HP-25 is the odd one out with its choice of inequalities, because they were running out of ROM space. Making the X vs. Y comparisons exactly match the X vs. 0 comparisons saved a few bytes of code in their implementation. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Evolution of Conditional Tests - David Hayden - 01-03-2020, 09:28 PM
RE: Evolution of Conditional Tests - Dave Britten - 01-03-2020, 09:36 PM
RE: Evolution of Conditional Tests - Thomas Okken - 01-03-2020 11:41 PM
RE: Evolution of Conditional Tests - rprosperi - 01-03-2020, 11:48 PM
RE: Evolution of Conditional Tests - Dave Britten - 01-04-2020, 12:08 AM
RE: Evolution of Conditional Tests - Valentin Albillo - 01-04-2020, 12:26 AM
RE: Evolution of Conditional Tests - Dave Britten - 01-04-2020, 12:33 AM
RE: Evolution of Conditional Tests - Sylvain Cote - 01-04-2020, 12:58 AM
RE: Evolution of Conditional Tests - J-F Garnier - 01-08-2020, 11:11 AM
RE: Evolution of Conditional Tests - Garth Wilson - 01-04-2020, 03:44 AM
RE: Evolution of Conditional Tests - Sylvain Cote - 01-04-2020, 04:22 AM
RE: Evolution of Conditional Tests - Ángel Martin - 01-04-2020, 07:03 AM
|
User(s) browsing this thread: 7 Guest(s)