Post Reply 
(10C or 25C) Distance Speed Time
05-13-2024, 10:43 AM (This post was last modified: 05-19-2024 10:10 AM by Gamo.)
Post: #1
(10C or 25C) Distance Speed Time
Program to find Distance, Speed or Time

When too lazy to remember all there formular
this little program will do.

Use Store Register 1, 2 and 3

R1 Distance
R2 Speed
R3 Time

Input 0 for one of the three unknow

[R/S] Answer from your selected unknown

Usage Example at this link:

https://www.hpmuseum.org/forum/thread-21720.html

Program:
Quote:01 RCL 1 // Unknown Distance?
02 X=0
03 GTO 10
04 RCL 2 // Unknown Speed?
05 X=0
06 GTO 10
07 RCL 3 // Unknown Time?
08 X=0
09 GTO 22
10 RCL 3 // Known Time then convert to decimal degree
11 →H
12 RCL 2 // Test if Speed is unknown then go to line 17
13 X=0
14 GTO 17
15 x // Calculate Distance = Speed x Time
16 GTO 00
17 X<>Y
18 RCL 1
19 X<>Y
20 ÷ // Calculate Speed = Distance ÷ Time
21 GTO 00
22 R↓
23 ÷
24 →H.MS // Calculate Time = Distance ÷ Speed

Gamo 5/2024
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(10C or 25C) Distance Speed Time - Gamo - 05-13-2024 10:43 AM



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