Simple Statistics Program - need to chance - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: Simple Statistics Program - need to chance (/thread-14291.html) |
Simple Statistics Program - need to chance - Dinamarco - 01-01-2020 07:03 PM Hi. I'm using the program above. But to end the entry of samples, needed to type "0"(zero). Sometimes, 0 is a sample..... Is possible to chance for and Letter? or other command? Could somebody help me? The program: (in line 5 and 13, it's necessary to chance, because on my HP41 program I just cannot insert the correct symbols) I make some adjusts to use with a printer. LBL "STAT" FIX 3 BEEP CLRG "CL SIGMA" -----> key "F" LBL 00 TONE 5 "ENTER DATA" PROMPT PRX X=0? GTO 01 "SIGMA +" --------> key "A" STO 00 LBL 01 MEAN XEQ 02 "MEAN=" XEQ 03 SDEV CLA XEQ 02 "SDEV=" XEQ 03 XEQ 02 RCL 16 1 - SQRT / "SE=" XEQ 03 FIX 0 CLA RCL 16 XEQ 02 "N=" XEQ 03 GTO "STAT" LBL 02 TONE 9 TONE 9 RTN LBL 03 ARCL X AVIEW FS? 55 RTN STOP RTN .END. RE: Simple Statistics Program - need to chance - David Hayden - 01-01-2020 11:05 PM You could use the numeric input flag (22). Something like: Code: LBL 00 Also, at the bottom of the program you could replace Code: FS? 55 Code: FC? 55 RE: Simple Statistics Program - need to chance - Dinamarco - 01-01-2020 11:17 PM Is it correct? LBL "STAT" FIX 3 BEEP CLRG "CL SIGMA" -----> key "F" LBL 00 TONE 5 "ENTER DATA" CF 22 PROMPT PRX FC? 22 // If input was entered, F22 will be set GTO 01 "SIGMA +" --------> key "A" GTO 00 LBL 01 MEAN XEQ 02 "MEAN=" XEQ 03 SDEV CLA XEQ 02 "SDEV=" XEQ 03 XEQ 02 RCL 16 1 - SQRT / "SE=" XEQ 03 FIX 0 CLA RCL 16 XEQ 02 "N=" XEQ 03 GTO "STAT" LBL 02 TONE 9 TONE 9 RTN LBL 03 ARCL X AVIEW FC? 55 STOP .END. RE: Simple Statistics Program - need to chance - Dinamarco - 01-18-2020 01:13 AM Ok... done But (that's the problem...) the printer shows after enter the numbers: 1,470 *** 1,480 *** 1,740 *** 1,478 *** 1,500 *** 5. *** ------->>>>> is possible not to appear (be printed)? mean= 1,534 SDEV= 116 SE= 58 NUMBER= 5 I wood like print just the number, at the end the "5, ***" just not appear. Could you help me? |