Hypergeometric function
|
10-30-2023, 05:14 PM
(This post was last modified: 10-30-2023 05:29 PM by Namir.)
Post: #1
|
|||
|
|||
Hypergeometric function
Hypergeometric function for HP-41C
================================= Code calculates values for the hypergeometric function F(alpha, beta, gamma, x). The code uses the gamma function to help calculate the value of the hypergeometric function. The code uses two programs to calculate the hypergeometric function. The programs are HGFX and GAM4 and must be loaded separately (i.e. after you load one, press the [GTO][.][.] buttons). Memory Map ========= Code: R00 = x HP-41C Listing ============== Code: 01 LBL "HGFX" Code: 01 LBL "GAM4" Usage ===== 1) Press [XEQ] [ALPHA]HGFX[ALPHA]. The program displays the prompt "A^B^C^X?" 2) Enter the value for parameter alpha and press ENTER. 3) Enter the value for parameter beta and press ENTER. 4) Enter the value for parameter gamma and press ENTER. 5) Enter the value for x and press R/S. The program displays the prompt "TOLER?" 6) Enter a small value for the tolerance and press R/S. 7) The program displays the value of the hypergeometric function. Example ======= To calculate F(1.5, 1.5, 2.5, 0.3), perform the following steps: 1) Press [XEQ] [ALPHA]HGFX[ALPHA]. The program displays the prompt "A^B^C^X?" 2) Enter the value 1.5 for parameter alpha and press ENTER. 3) Enter the value 1.5 for parameter beta and press ENTER. 4) Enter the value 2.5 for parameter gamma and press ENTER. 5) Enter the value 0.3 for x and press R/S. The program displays the prompt "TOLER?" 6) Enter a small value 1E-15 for the tolerance and press R/S. 7) The program displays 1.36956073 as the value of the hypergeometric function. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)