(12C) Distance Speed Time - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (12C) Distance Speed Time (/thread-21720.html) |
(12C) Distance Speed Time - Gamo - 05-11-2024 07:57 AM Recently I often do the bicycle exercise and I only have two data for my cycling activity which is the Distance and Time. I like to know my average speed and this program for the HP-12C will find the Distance, Speed or Time. -------------------------------------------------------------------- Since HP-12C doesn't have Lables I'll use Store Register 1, 2 and 3 R1 for Distance R2 for Speed R3 for Time Input Instructions: Input Two Known Variable to R1, R2 or R3 Input 0 for the "Unknown Variable" to R1, R2 or R3 -------------------------------------------------------------------- For the " Time " input is the same as the Degree Minute Second instruction on HP-11 or HP-15C Time Input Example: 1 hour 25 minute 30 second input as 1.2530 45 minute 15 second input as 0.4515 ---------------------------------------------------------------------- Example: FIX 4 Distance is 15 km Time is 36 minute What is the Speed ? 15 [STO] 1 // Distance 0 [STO] 2 // Unknown Speed 0.36 [STO] 3 // Time [R/S] Answer for the Speed is 25 km/h --------------------------------------------- Speed is 25 km/h Time is 30 minute What is the Distance? 0 [STO] 1 25 [STO] 2 0.3 [STO] 3 [R/S] Answer for the Distance is 12.5 km ---------------------------------------------- Program: Quote:01 RCL 1 Gamo 5/2024 RE: (12C) Distance Speed Time - Gamo - 05-12-2024 09:37 AM Few more example. Cycling distance is 35.08 km and took 2 hour 2 minute and 15 second ►What is the Average Speed? ►If to take 1 hour 30 minute What is the Average Speed? ►If the speed is 25 km/h How long it take to cover 35.08 km? 35.08 [STO] 1 // Input Distance 0 [STO] 2 // Unknown Speed 2.0215 [STO] 3 // Input Time ⁕[R/S] 17.2172 ≈ 17.2 km/h // Average Speed Result 1.3 [STO] 3 // Change Time Input ⁕[R/S] 23.3867 ≈ 23.4 km/h // Update the Average Speed 25 [STO] 2 // Input new data for Speed 0 [STO] 3 // Unknow Time ⁕[R/S] 1.2411 ≈ 1 hour 24 minute 11 Second // Update Time Result Gamo 5/2024 RE: (12C) Distance Speed Time - Gamo - 05-17-2024 05:25 AM My daily cycling exercise is getting better considering the distance versus time. Since then, I always do 15 km distance with various average speeds. My best time so far only took 36 minute to finish 15 km with this data what is the average speed? 15 [STO] 1 0.36 [STO] 3 0 [STO] 2 [R/S] Display Average Speed answer is 25 km/h If I want to spend less time cycling for 35 minute what average speed I have to do? While previous data still there 0.35 [STO] 3 [R/S] 25.7143 ≈ 25.7 km/h If I speed up my cycling speed to 26 km/h How long it will take to finish 15 km? 26 [STO] 2 0 [STO] 3 [R/S] 0.3436 Time is 34 minute 36 second Gamo RE: (12C) Distance Speed Time - Gamo - 05-20-2024 11:59 AM Streamline this program from post #1 Quote:01 6 Gamo RE: (12C) Distance Speed Time - Gamo - 09-30-2024 09:59 AM Program updated form Post #1 and Post #4 Instead of using the Storage Register 1, 2 and 3 This program will use the TVM buttons for quicker data input. Distance use [ n ] Speed use [ i ] Time use [ PV ] -------------------------------------------------- Use same program as on Post #1 or Post #4 Instead of [RCL] 1 change to [RCL] [ n ] Instead of [RCL] 2 change to [RCL] [ i ] Instead of [RCL] 3 change to [RCL] [ PV ] -------------------------------------------------- Example Usage: Distance is 23.51 km Time is 34 minute and 24 second what is the Speed ? 23.51 [ n ] input Distance 0.3424 [ PV ] input Time 0 [ i ] Unknown Speed [R/S] answer for Speed is 41.01 km/h Gamo 9/2024 |