Post Reply 
Programming Question on HP15CE
06-21-2024, 12:46 PM
Post: #7
RE: Programming Question on HP15CE
Hello!

If in doubt, aks ChatGPT: „Please write a program for the hp-15c to calculate the time it takes for an object to fall a given height on earth

The first result used a storage register for the input value, so I asked again: „Can you please rewrite that program without using a memory register

Ang got almost the same listing as has been shown above several times already, albeit with one unnecessary ENTER:

Code:
001 - f LBL A      ; Label A
002 - ENTER        ; Duplicate the height h on the stack
003 - 2
004 - ×            ; Multiply h by 2
005 - 9.81
006 - ÷            ; Divide by g (9.81)
007 - √x           ; Take the square root
008 - g RTN        ; Return

The code comes with a very detailed explanation of the equations and detailed instructions on how to use it.

Regards
Max
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 - Maximilian Hohmann - 06-21-2024 12:46 PM



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