The Museum of HP Calculators

HP Forum Archive 08

[ Return to Index | Top of Index ]

HP 42S COMB bug?
Message #1 Posted by Ken Garges on 5 May 2002, 6:45 p.m.

I discovered what I think is a bug in my HP 42S.

Suppose you want to figure the number of Combinations of 8 things taken 5 at a time. But you mistakenly enter the arguments in opposite order:
5, ENTER, 8, COMB

You get an "Invalid Data" error message. Fine. So you press X EXCHANGE Y to put them in the right order. The display confirms 8 in the Y register and 5 in the X register. But if you press COMB you still get the "Invalid Data" error!

In fact the calculator seems to get stuck in a mode where ANY inputs to COMB give "Invalid Data" error. Clearing X, the whole stack, power cycling don't get it out of this mode. The only way I've found to get back to normal is to perform some arithmetic.

For example, multiply the 5 in the X register by 1:
1, MULTIPLY, COMB
then gives the correct answer of 56.

Anyone else seen this?

      
Re: HP 42S COMB bug?
Message #2 Posted by Peter Lampione on 5 May 2002, 6:59 p.m.,
in response to message #1 by Ken Garges

Yes, it is a classic bug. I saw it documented on some article, perhaps in the Forum.

Peter

            
Re: HP 42S COMB and PERM bug.
Message #3 Posted by Andrés C. Rodríguez (Argentina) on 5 May 2002, 7:28 p.m.,
in response to message #2 by Peter Lampione

Yes, it is a well known bug, and affects COMB and PERM the same way.

                  
Re: HP 42S COMB and PERM bug.
Message #4 Posted by Karl Schneider on 6 May 2002, 3:24 a.m.,
in response to message #3 by Andrés C. Rodríguez (Argentina)

Ken, Peter and Andres --

I can't replicate the error you describe on my 1989 HP-42S (serial # 2939S33496). Simply re-executing COMB or PERM throught the PROB menu, after pressing X<>Y following the "Invalid Data" message, gives me the correct answers. Was this error characteristic of late or very early units?

                        
Re: HP 42S COMB and PERM bug.
Message #5 Posted by Iqbal on 6 May 2002, 10:42 p.m.,
in response to message #4 by Karl Schneider

I checked 5 HP42S and only one didn't display the bug. That one was made in the USA in 1988. The other four made between 1993 to 1999 all displayed the bug. If I had to guess I would say it only occurs in the later models.

                              
Re: HP 42S COMB and PERM bug.
Message #6 Posted by Andrés C. Rodríguez (Argentina) on 7 May 2002, 5:10 p.m.,
in response to message #5 by Iqbal

I had a 1990 model which I service-exchanged in 1999, and both displayed the bug.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall