Accuracy of Numerical Integration Methods

Click For Summary

Discussion Overview

The discussion revolves around methods for testing the accuracy of numerical solutions to integral equations. Participants explore various strategies and considerations related to numerical integration techniques and their associated errors.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant suggests reducing the step size by factors of 10 and comparing results to observe convergence, while noting that round-off errors will eventually become significant.
  • Another participant emphasizes the importance of knowing the specific numerical method used, as each method has a known error term that can be expressed based on the first truncated term of a series expansion.
  • A different approach is proposed involving the use of extended precision libraries or specialized summation routines to mitigate floating point truncation errors.
  • Additionally, a method for estimating error limits in rectangle integration is mentioned, involving the summation of areas of maximum and minimum rectangles to find a reasonable error estimate.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single method or approach, as various strategies and considerations are presented, indicating multiple competing views on how to assess numerical integration accuracy.

Contextual Notes

The discussion lacks specific details about the integral equation in question, which may limit the applicability of the proposed methods. Additionally, the effectiveness of the suggested approaches may depend on the specific numerical method employed.

ninaax
Messages
1
Reaction score
0
Hi,
does anyone know what sort of methods I could use to test the accuracy of the numerical solution of the integral equation?

Many thanks
 
Technology news on Phys.org
That's a pretty general question, since you didn't post the specific integral equation you are trying to solve. Here's a general answer: try reducing the step size by a factor of 10, and compare the two answers. Reduce the step size by another factor of 10, and compare that answer to the first two. Repeat the process, and see if the result converges to some value.

At some point, the step size will be so small that round-off errors will significantly alter the answer. At this point, you can stop the process.
 
We need to know what method you are using. Every common method has a know error term associated with it. Tell me the method and I bet I can come up with an expression for the error. Since most methods are based on the truncation of a series expansion, the error is commonly given as the first truncated term.
 
You could reduce floating point truncation with an extended precision library, like apfloat or you can reduce floating point truncation errors with a summation routine that adds numbers with the same exponents, or otherwise just stores them into an array indexed by the exponent, where a final call is made to sum up all the stored numbers in exponent order to produce a total sum.

Then as mentioned there's the mathematical limit for error. In the case of integration by rectangles, you could sum up the areas of maximum rectangles, then sum up the areas of minimum rectangles, and subtract to find the error limit (within reason).
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K