Numerical integration of discrete data

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

Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top