Post Reply 
Programming Question on HP15CE
06-21-2024, 08:56 AM
Post: #5
RE: Programming Question on HP15CE
You could use the Python to RPN - source code converter with the following program:
Code:
def time(H):
  return SQRT(2*H/9.8)

This is the converted program for the HP-42S:
Code:
01 LBL "time"
02 STO "H"
03 RDN
04 2
05 RCL "H"
06 *
07 9.8
08 /
09 SQRT
10 RTN
11 LBL 50
12 "-Utility Funcs-"
13 RTN

In this case we don't really need to use the register H as the value is already on the stack.
And then no utility functions are used. Thus we can skip them too.
The text-label "time" is not supported by the HP-15C and has to be replaced for instance by label A.

So we end up with:
Code:
01▸LBL A
02 2
03 ×
04 9.8
05 ÷
06 SQRT
07 RTN
This is close to Pierre's program.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Programming Question on HP15CE - tones688 - 06-20-2024, 06:10 PM
RE: Programming Question on HP15CE - Johnh - 06-20-2024, 11:44 PM
RE: Programming Question on HP15CE - dm319 - 06-21-2024, 07:51 AM
RE: Programming Question on HP15CE - Thomas Klemm - 06-21-2024 08:56 AM



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