(12C) Geometric & Harmonic Mean - 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) Geometric & Harmonic Mean (/thread-21950.html) |
(12C) Geometric & Harmonic Mean - Gamo - 06-26-2024 04:51 AM Program to calculate the Geometric and Hamonic Mean -------------------------------------------------------------- Procedure: For every new problem first " Clear Statistic Registers " To clear statistic register press [f] [Σ] -------------------------------------------------------------- Enter each Data Value press [R/S] and display will show the number of data entered 1, 2, 3, ....... , n When done press 0 [R/S] display answer for Geometric Mean [X<>Y] display answer for Harmonic Mean --------------------------------------------------------------- Example: Data: 30, 10 [f] [Σ] 30 [R/S] display 1 10 [R/S] display 2 0 [R/S] display answer for GM = 17.3205 [X<>Y] for HM = 15 ---------------------------------------------------------------- Program: Quote:01 X=0 Gamo 6/2024 RE: (12C) Geometric & Harmonic Mean - PedroLeiva - 06-26-2024 03:08 PM I am trying to load this program in my HP-25, and have difficulty understanding step number 9: x-bar//[g] [0]. Can you assist me please. Pedro RE: (12C) Geometric & Harmonic Mean - bxparks - 06-26-2024 04:50 PM (06-26-2024 03:08 PM)PedroLeiva Wrote: I am trying to load this program in my HP-25, and have difficulty understanding step number 9: x-bar//[g] [0]. Can you assist me please. Pedro "x-bar" is the "mean of x", located at [g] [0] on the HP-12C. It calculates both the mean of X and the mean of Y. On the HP-25, it looks like x-bar is located at [f] [x<>y] according to the images that I see on the internet. No idea if it calculates both x-bar and y-bar like the HP-12C. RE: (12C) Geometric & Harmonic Mean - PedroLeiva - 06-26-2024 05:48 PM (06-26-2024 04:50 PM)bxparks Wrote:TYVM, I will test and inform. Pedro(06-26-2024 03:08 PM)PedroLeiva Wrote: I am trying to load this program in my HP-25, and have difficulty understanding step number 9: x-bar//[g] [0]. Can you assist me please. Pedro RE: (12C) Geometric & Harmonic Mean - Gamo - 06-27-2024 09:58 AM I'm looking in the HP25 User's Handbook on page 68 About using the (Mean) function the X-bar key. Example provided only the Mean Value on the X-Stack and look like no Mean Calculation on the Y-Stack unlike the HP-12C example on page 89 Remark: This program on line 10 the [X<>Y] key swap the Y-Stack for the Mean Value from the Y-Stack to calculate the Harmonic Mean Gamo RE: (12C) Geometric & Harmonic Mean - PedroLeiva - 06-27-2024 10:02 AM Yes Gamo, you are right. For double mean (X & Y) stack values I will have to use HP-67. Thanks for taking care of the issue. Pedro RE: (12C) Geometric & Harmonic Mean - bxparks - 06-27-2024 02:25 PM (06-27-2024 10:02 AM)PedroLeiva Wrote: Yes Gamo, you are right. For double mean (X & Y) stack values I will have to use HP-67. Thanks for taking care of the issue. Pedro The same HP-25 manual also says that Σy is collected in R4, and N is collected in R3. And ybar=Σy/N. It shouldn't be hard to adapt the program to the HP-25 by calculating ybar manually using R4 and R3. RE: (12C) Geometric & Harmonic Mean - PedroLeiva - 06-27-2024 09:40 PM I have an HP-25C version of Geometric and Harmonic Mean, but 8MB load cuota is exceeded. If anyone is interested, please send me an email to: pedrodanielleiva@gmail.com. As far as I know with private messages is not possible to attach files. Pedro RE: (12C) Geometric & Harmonic Mean - SlideRule - 06-27-2024 11:40 PM (06-27-2024 09:40 PM)PedroLeiva Wrote: I have an HP-25C version of Geometric and Harmonic Mean, but … Pedro as received from same [attachment=13667] BEST! SlideRule RE: (12C) Geometric & Harmonic Mean - PedroLeiva - 06-27-2024 11:59 PM Thank you SlideRule Pedro RE: (12C) Geometric & Harmonic Mean - Gamo - 06-29-2024 04:10 AM Program update from Post #1 to include the Arithmetic mean Usage: Data: 40, 10 [f] REG [f] Σ 40 [R/S] display 1 10 [R/S] display 2 0 [R/S] display answer for AM is 25 [R↓] display answer for GM is 20 [R↓] display answer for HM is 16 Remark: AM > GM > HM ----------------------------------------- Program: Quote:01 X=0 Gamo |