Post Reply 
Calculator benchmark
08-22-2021, 10:29 AM (This post was last modified: 08-22-2021 06:31 PM by C.Ret.)
Post: #46
RE: Calculator benchmark
(08-19-2021 11:31 PM)Valentin Albillo Wrote:  See if you can find it (I'm sure you will).

Yes, but too late, I found same ways to spare a few strokes but not the 4 strokes you were waiting for !

Werner propose a much economic solution, but I think we reach a limit in clarity. Especially when he changes the order of results not following at the original table order.

I try to optimize a bit more his code trying to include all the process into a unique code run. But I am not satisfy with the solution I come to. It is far too much confusing and the user certainly will be completely lost.

That why I was looking for a much more secure way to do this job

Quote: I think this is a fairly representative calculator problem- perhaps you have collected some data from an experiment, and need to transform this data before presenting it.

Imagine you have to present the results to your boss or an examination committee; any confusing results, mistake or erroneous transcription would certainly bring you in big troubles !

Fortunately, I found a device that will be a easy and secure to use:

HP-19C PROGRAM
Code:
(3)    [.PRGM.]  f Clear PRGM
(27)   2.56  STO 2  3.12  GSB 0  GSB 2  GSB 2  GSB 1  GSB 1  STO*1  GSB 2  GSB 2                             # Main program: build up table
(29)   g 1/x  ST+2  GSB 2  18.56  GSB 0  17.63  GSB 0  g 1/x  GSB 2  g 1/x  GTO 2                            

(6)    g LBL 0  STO 1  1                                                                                     # Subprograms
(7)    g LBL 1  STO*1  1                                                                                     ;  0:sto A   1:sto 2A  2:sto B/2
(6)    g LBL 2  STO/2
(30)   g LBL 9  RCL 1  STO 0  STO*0  STO+0  RCL 2  ENTER^  f LN  STO-0  ENTER^  +  RCL 0  f PRSTK  2  g RTN  ; Compute X and Y then print A B Y X 
(2)    [..RUN]  R/S                                                                                          # Switch back to RUN mode and run code

This PRINT the complete and unambiguous listing where labels X Y Z & T indicate respectively X Y B & A values:

R/S

3.1200 T
2.5600 Z
1.8800 Y
11.9144 X

3.1200 T
1.2800 Z
0.4937 Y
12.6075 X

3.1200 T
0.6400 Z
-0.8926 Y
13.3007 X

6.2400 T
0.6400 Z
-0.8926 Y
45.6239 X

12.4800 T
0.6400 Z
-0.8926 Y
168.6767 X

24.9600 T
0.3200 Z
-2.2789 Y
649.1010 X

24.9600 T
0.1600 Z
-3.6652 Y
649.7942 X

24.9600 T
1.3200 Z
0.5553 Y
647.6840 X

18.5600 T
1.3200 Z
0.5553 Y
362.7560 X

17.6300 T
1.3200 Z
0.5553 Y
328.1693 X

17.6300 T
2.6400 Z
1.9416 Y
327.4761 X

17.6300 T
5.2800 Z
3.3279 Y
326.7838 X


SCORE 110 for the honorable and practical HP-19C pocket printing calculator.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Calculator benchmark - jhallen - 08-08-2021, 05:42 AM
RE: Calculator benchmark HP-28S - C.Ret - 08-08-2021, 04:46 PM
RE: Calculator benchmark - C.Ret - 08-08-2021, 07:26 PM
RE: Calculator benchmark - jhallen - 08-08-2021, 08:05 PM
RE: Calculator benchmark - OlidaBel - 08-11-2021, 12:40 PM
RE: Calculator benchmark - C.Ret - 08-08-2021, 08:25 PM
RE: Calculator benchmark - robve - 08-11-2021, 08:15 PM
RE: Calculator benchmark - jhallen - 08-08-2021, 09:57 PM
RE: Calculator benchmark - C.Ret - 08-12-2021, 04:24 PM
RE: Calculator benchmark - robve - 08-12-2021, 09:13 PM
RE: Calculator benchmark - robve - 08-12-2021, 11:37 PM
RE: Calculator benchmark - Claudio L. - 08-09-2021, 08:14 PM
RE: Calculator benchmark - jhallen - 08-11-2021, 04:33 AM
RE: Calculator benchmark - Claudio L. - 08-11-2021, 05:14 PM
RE: Calculator benchmark - OlidaBel - 08-11-2021, 09:00 AM
RE: Calculator benchmark - jhallen - 08-11-2021, 01:16 PM
RE: Calculator benchmark - OlidaBel - 08-11-2021, 01:33 PM
RE: Calculator benchmark - Werner - 08-11-2021, 11:49 AM
RE: Calculator benchmark - jhallen - 08-11-2021, 01:11 PM
RE: Calculator benchmark - DavidM - 08-12-2021, 01:42 AM
RE: Calculator benchmark - robve - 08-13-2021, 02:16 PM
RE: Calculator benchmark - jhallen - 08-20-2021, 03:34 AM
RE: Calculator benchmark - robve - 08-20-2021, 02:49 PM
RE: Calculator benchmark - robve - 08-20-2021, 06:12 PM
RE: Calculator benchmark - jhallen - 08-20-2021, 08:26 PM
RE: Calculator benchmark - robve - 08-13-2021, 09:10 PM
RE: Calculator benchmark - C.Ret - 08-15-2021, 01:13 PM
RE: Calculator benchmark - robve - 08-15-2021, 02:31 PM
RE: Calculator benchmark - robve - 08-15-2021, 04:43 PM
RE: Calculator benchmark - robve - 08-15-2021, 06:30 PM
RE: Calculator benchmark - robve - 08-16-2021, 01:01 AM
RE: Calculator benchmark - EdS2 - 08-16-2021, 06:22 AM
RE: Calculator benchmark - C.Ret - 08-19-2021, 04:37 AM
RE: Calculator benchmark - C.Ret - 08-19-2021, 05:21 PM
RE: Calculator benchmark - Werner - 08-20-2021, 02:58 PM
RE: Calculator benchmark - C.Ret - 08-22-2021 10:29 AM
RE: Calculator benchmark - jhallen - 08-17-2021, 03:56 AM
RE: Calculator benchmark - C.Ret - 08-18-2021, 08:20 PM
RE: Calculator benchmark - jhallen - 08-19-2021, 12:23 AM
RE: Calculator benchmark - jhallen - 08-22-2021, 06:42 PM
RE: Calculator benchmark - robve - 08-23-2021, 10:51 PM
RE: Calculator benchmark - robve - 09-22-2021, 06:14 PM
RE: Calculator benchmark - robve - 09-25-2021, 01:25 AM
RE: Calculator benchmark - robve - 10-02-2021, 10:08 PM



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