Post Reply 
HP71B Integral Questions
02-11-2020, 11:57 PM
Post: #29
RE: HP71B Integral Questions
Amazingly, Aitken's extrapolation trick work even for the troublesome 1/sqrt(1-x^2)

lua> I=require'integ'
lua> function f(x) return 1/sqrt(1-x*x) end
lua> u = I.u(f,-1,1)
lua> a = I.integ(I.simpson(u,-1,1,0),2^10) -- with bad assumption, T1 = 0

4     2.6032971925091086   3.131182235954578
8     2.876452993708263    3.141072676119944
16    3.009535987413591    3.1415792702305954
32    3.075628788308323    3.1415925017013078
64    3.1086187748017564   3.141592652903347
128   3.1251067205395437   3.1415926535886425
256   3.1333498128442754   3.141592653589793
512   3.1374712489390655   3.141592653589794
1024  3.139531953229666    3.141592653589784

Code:
Aitken Extrapolation on Trapezoid numbers
64    3.10861877480
128   3.12510672054
256   3.13334981284  3.14159114440
512   3.13747124894  3.14159246493
1024  3.13953195323  3.14159263001  3.14159265359

As expected, with correct T1 value, trapezoid numbers converge better.

lua> I.integ(I.simpson(u,-1,1,2*sqrt(3)),2^10)

4     3.1421574437527586   3.131182235954578
8     3.141606450669424    3.141072676119944
16    3.1415928071550314   3.1415792702305954
32    3.141592654278877    3.1415925017013078
64    3.141592653590944    3.141592652903347
128   3.1415926535897936   3.1415926535886425
256   3.1415926535897936   3.141592653589793
512   3.1415926535897944   3.141592653589794
1024  3.1415926535897887   3.141592653589784
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)