The Museum of HP Calculators

HP Forum Archive 19

[ Return to Index | Top of Index ]

15c calculator
Message #1 Posted by jim mac on 15 Nov 2010, 2:43 a.m.

is there a substitute key on the 15c for x>0 which was on the 11c. Cheers Jim

      
Re: 15c calculator
Message #2 Posted by Paul Dale on 15 Nov 2010, 2:45 a.m.,
in response to message #1 by jim mac

Look at the back panel for details of the TEST instruction.

- Pauli

            
Re: 15c calculator
Message #3 Posted by jim mac on 15 Nov 2010, 2:49 a.m.,
in response to message #2 by Paul Dale

I had a program with this line init on my 11c so i need the corresponding keyin so that the program will work on my 15c. Cheers Jim

            
Re: 15c calculator
Message #4 Posted by jim mac on 15 Nov 2010, 2:58 a.m.,
in response to message #2 by Paul Dale

I tried using g test 1 (x>0) but the program still does not work. Cheers Jim

                  
Re: 15c calculator
Message #5 Posted by Walter B on 15 Nov 2010, 3:29 a.m.,
in response to message #4 by jim mac

Jim,

I'd suggest you show a listing of your program here and tell us what "does not work". Else try single-stepping through your program and check the values on the stack. AFAIK calculators aren't mean, so the problem sits in front of them usually ;)

                  
Re: 15c calculator
Message #6 Posted by bill platt on 15 Nov 2010, 10:01 a.m.,
in response to message #4 by jim mac

Hi Jim, I now see that you tried this. Perhaps you are accidentally in complex mode? Check your initial conditions. Also check your memory allocation. The 15c memory can be allocated specifically. You may have inadvertently over-allocated memory to program lines or vice versa...

                  
Re: 15c calculator (test x > 0?)
Message #7 Posted by Karl Schneider on 15 Nov 2010, 11:15 a.m.,
in response to message #4 by jim mac

Jim --

g TEST 1 on the HP-15C indeed provides the "x > 0 ?" conditional test listed directly on the HP-11C.

The four conditional tests of equality and inequality on the HP-15C utilize both parts of a complex number, so they might act unexpectedly in complex mode (g SF 8). However, "x > 0?" is not one of those tests.

If difficulties persist, I'd echo Walter's suggestions for you to post the troublesome code and be more specific about "does not work".

-- KS

Edited: 17 Nov 2010, 12:49 a.m.

      
Re: 15c calculator
Message #8 Posted by bill platt on 15 Nov 2010, 9:53 a.m.,
in response to message #1 by jim mac

Jim,

The 15c has additional tests compared to the 11c. Unlike the 11c however, only two of the tests are directly labeled and keyed. The other ten are called using sequence g TEST n. Below is a comparison table:

11C has 8 tests, all in the 10th column of keys:
x<=y
x<0

x>y x>0

x not y x not 0

x=y x=0

For the 15c, look on the back of the calculator and you will see a table thus:

   ERROR           TEST       MATRIX    
0 | y/0, LN 0...| x not 0 |   0 DIM
1 | ----        | x > 0   | ------
2 | ------      | x < 0   |

etc.

So to get "X > 0" you key in g TEST n which is g followed by the minus key, followed by the number 1.

I hope that helps,

Bill


[ Return to Index | Top of Index ]

Go back to the main exhibit hall