Numerical integration of discrete data

Click For Summary
For numerical integration of discrete data at non-equidistant nodes, the simple Simpson rule is not applicable, prompting the search for alternative methods. Lagrange's and Newton's Interpolation can be used to create a continuous function from discrete data, allowing for the application of numerical integration techniques. The trapezoidal rule is suggested as a straightforward adaptation for uneven spacing, while adapting Simpson's rule is noted to be more complex but potentially feasible. A shared attachment provides coefficients for Simpson's First Rule specifically for unevenly spaced ordinates. Overall, interpolation methods and the trapezoidal rule are highlighted as viable solutions for the integration challenge.
hermano
Messages
38
Reaction score
0
Hi,

I'm searching for days for a numerical integration methode for discrete data given at non-equidistant nodes. The simple Simpson rule can only be used for equidistant nodes so I'm looking for methode which I can solve my problem. Any suggestion is welcome!

Thanks in advance!
 
Mathematics news on Phys.org
As far as i know, for discrete data, i can probably utilize the Lagrange's Interpolation or Newton's Interpolation to generate a continuous function. Then, the next step, i think i can calculate the integral using simple Simpson rule or other methods for numerical calculation.
Maybe the INTERPOLATION can be helpful for you!
 
hermano said:
Hi,

I'm searching for days for a numerical integration methode for discrete data given at non-equidistant nodes. The simple Simpson rule can only be used for equidistant nodes so I'm looking for methode which I can solve my problem. Any suggestion is welcome!

Thanks in advance!

Do all of the have points have "random" spacing or are the spacings mostly the same with just a few uneven spaced ones?

In any case the trapezoidal rule would be trivial to adapt to uneven spacing, if that was sufficiently accurate.

I think I could adapt simpsons rule to uneven spacing if I put my mind to it (which usually means someone has already done it), but it wouldn't be a trivial problem like with the trapezoidal rule.
 
hermano:

The attached file derives the general coefficients for Simpson's First Rule. This is the usual 1-4-1 rule when the ordinates are equally spaced. The derivation contained in the attachment assumes that one is trying to integrate the curve passing thru the points (x0, y0), (x1, y1), and (x2, y2). The integral is evaluated thus: A = k0 * y0 + k1 * y1 + k2 * y2
The coefficients k0, k1, and k2 for unevenly spaced ordinates are given on p.32 of the attachment.
 

Attachments

Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
2K