16-Point Gaussian Quadrature
|
04-09-2021, 11:53 AM
(This post was last modified: 04-09-2021 01:13 PM by robve.)
Post: #2
|
|||
|
|||
RE: 16-Point Gaussian Quadrature
(04-09-2021 05:17 AM)Gamo Wrote: Here is the problem: ∫ 0 to 2 √4 - X² dx = Pi = 3.141592654 This looks right and not bad for 16 points. 16 points will only give you a (rough) approximation of \( \int_0^2 \sqrt{4-x^2}\,dx \). Gausss 10 point: 3.14209916979661 Gauss Kronrod 21 point: 3.14161975053083 By comparison (edited to add more examples): Romberg 524289 points (1e-9 error threshold) gives 3.14159265256818 Romberg 16385 points (1e-7 error threshold) gives 3.14159265256818 Tanh-Sinh 56 points (1e-9 error threshold) gives 3.14159265358672 Tanh-Sinh 30 points (1e-7 error threshold) gives 3.14159265358975 Adaptive Simpson 417 points (1e-9 error threshold) gives 3.14159111522653 Adaptive Simpson 153 points (1e-7 error threshold) gives 3.14159111489381 - Rob "I count on old friends" -- HP 71B,Prime|Ti VOY200,Nspire CXII CAS|Casio fx-CG50...|Sharp PC-G850,E500,2500,1500,14xx,13xx,12xx... |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
16-Point Gaussian Quadrature - Gamo - 04-09-2021, 05:17 AM
RE: 16-Point Gaussian Quadrature - robve - 04-09-2021 11:53 AM
RE: 16-Point Gaussian Quadrature - Albert Chan - 04-09-2021, 04:41 PM
RE: 16-Point Gaussian Quadrature - Wes Loewer - 04-10-2021, 03:50 PM
RE: 16-Point Gaussian Quadrature - Gamo - 04-10-2021, 02:54 AM
|
User(s) browsing this thread: 1 Guest(s)