Post Reply 
HP71B Integral Questions
02-21-2020, 11:23 PM (This post was last modified: 02-23-2020 01:55 AM by Albert Chan.)
Post: #30
RE: HP71B Integral Questions
Out of curiosity, I tried using the actual Gamma function integral

\(\Gamma(x+1) = \int _0 ^1 (-\ln(t))^x dt \)

This integral, for any big x, choke on HP71B INTEGRAL

Instead, I tried letting \(t = s^{x+1}\), turning the extreme spike into a bell-shaped curve

\(\Gamma(x+1) = \int _0^1 (x+1) s^x (-(x+1)\ln(s))^x ds = (x+1)^{x+1} \int _0^1 (-s\ln(s))^x ds\)

Scale RHS 2 terms to avoid hitting overflow limits, we have:
Code:
10 P=1/10^8
20 DEF FNA(X)=INTEGRAL(0,1,P,(-LN(IVAR))^X)
30 DEF FNB(X)=100*((X+1)/100)^(X+1)*INTEGRAL(0,1,P,(-100*IVAR*LN(IVAR))^X)
40 INPUT "X=?";X
50 T=TIME @ DISP FNA(X),IBOUND,TIME-T
60 T=TIME @ DISP FNB(X),IBOUND,TIME-T
70 DISP GAMMA(X+1),"GAMMA(X+1)"

>RUN
X=?10
3623769.01194     -3.61915267163E-2     40.36
3628800.00001     12719498.961          .09
3628800           GAMMA(X+1)
>RUN
X=?20
1.66431877492E18  -15440997253.2        40.47
2.4329020082E18   4.16433765069E22      .11
2.43290200818E18  GAMMA(X+1)
>RUN
X=?30
1.39229859877E31  -1.13405116532E23     40.31
2.65252859812E32  1.55401137325E38      .19
2.65252859812E32  GAMMA(X+1)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP71B Integral Questions - Albert Chan - 02-02-2020, 03:31 PM
RE: HP71B Integral Questions - Albert Chan - 02-03-2020, 01:58 PM
RE: HP71B Integral Questions - J-F Garnier - 02-03-2020, 03:00 PM
RE: HP71B Integral Questions - Albert Chan - 02-03-2020, 04:15 PM
RE: HP71B Integral Questions - Albert Chan - 02-03-2020, 11:15 PM
RE: HP71B Integral Questions - J-F Garnier - 02-05-2020, 08:43 AM
RE: HP71B Integral Questions - Albert Chan - 02-05-2020, 05:09 PM
RE: HP71B Integral Questions - Wes Loewer - 02-06-2020, 06:53 PM
RE: HP71B Integral Questions - Albert Chan - 02-06-2020, 11:16 PM
RE: HP71B Integral Questions - Wes Loewer - 02-07-2020, 03:49 AM
RE: HP71B Integral Questions - Albert Chan - 02-07-2020, 08:14 AM
RE: HP71B Integral Questions - J-F Garnier - 02-07-2020, 08:23 AM
RE: HP71B Integral Questions - Wes Loewer - 02-07-2020, 01:19 PM
RE: HP71B Integral Questions - Albert Chan - 02-07-2020, 05:08 PM
RE: HP71B Integral Questions - J-F Garnier - 02-07-2020, 05:54 PM
RE: HP71B Integral Questions - Wes Loewer - 02-07-2020, 08:16 PM
RE: HP71B Integral Questions - Wes Loewer - 02-07-2020, 08:12 PM
RE: HP71B Integral Questions - J-F Garnier - 02-05-2020, 06:20 PM
RE: HP71B Integral Questions - Albert Chan - 02-05-2020, 07:52 PM
RE: HP71B Integral Questions - J-F Garnier - 02-06-2020, 08:37 AM
RE: HP71B Integral Questions - Wes Loewer - 02-08-2020, 10:46 AM
RE: HP71B Integral Questions - J-F Garnier - 02-08-2020, 10:59 AM
RE: HP71B Integral Questions - Wes Loewer - 02-08-2020, 03:04 PM
RE: HP71B Integral Questions - Albert Chan - 02-09-2020, 01:43 PM
RE: HP71B Integral Questions - Wes Loewer - 02-09-2020, 08:33 PM
RE: HP71B Integral Questions - Albert Chan - 02-10-2020, 01:33 PM
RE: HP71B Integral Questions - Wes Loewer - 02-09-2020, 09:03 PM
RE: HP71B Integral Questions - Albert Chan - 02-11-2020, 05:03 PM
RE: HP71B Integral Questions - Albert Chan - 02-11-2020, 11:57 PM
RE: HP71B Integral Questions - Albert Chan - 02-21-2020 11:23 PM



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