New Trapedoizal Tail integration method
|
05-12-2021, 06:05 PM
(This post was last modified: 05-13-2021 02:28 AM by Namir.)
Post: #1
|
|||
|
|||
New Trapedoizal Tail integration method
Hi All,
I am sharing a new "trapezoidal tail" method. The method samples two function values in each interval at f(x+h/2-h/3) and fx(x+h/2+h/3) where h is the size of the integration interval. If you remove the h/2 part, the algorthm degrades in the results it return. Given function fx to integrate from x=A to x=B in N even steps. Code: h = (B - A) / N The above algorithm performs better than similar trapezoidal integration methods, like the mid-point method or regular trapezoidal method. How does the new algorithm compare with Simpson's rule? In general the latter methods performs better. I noticed that the absolute ratios of % errors of the new algorithm to Simpson's rule rises quadratically with the number of interval divisions. This relation seems to hold for the few different functions I tested and the curve fitted (using 5 points for each case) were perfect quadratic fits! Namir |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
New Trapedoizal Tail integration method - Namir - 05-12-2021 06:05 PM
RE: New Trapedoizal Tail integration method - Paul Dale - 05-13-2021, 06:17 AM
RE: New Trapedoizal Tail integration method - Namir - 05-13-2021, 08:28 AM
RE: New Trapedoizal Tail integration method - Maximilian Hohmann - 05-13-2021, 12:12 PM
RE: New Trapedoizal Tail integration method - Albert Chan - 05-13-2021, 01:41 PM
RE: New Trapedoizal Tail integration method - Albert Chan - 05-13-2021, 12:05 PM
RE: New Trapedoizal Tail integration method - Namir - 05-14-2021, 03:21 AM
|
User(s) browsing this thread: 1 Guest(s)