Closed damianjilk2 closed 1 week ago
Finished reading through Numerical Methods by Robert Hornbeck.
Synopsis of chapter 8:
- Trapezoidal Rule: a simple method that provides a good approximation for many functions.
- good for rough estimates or when the function is nearly linear over small intervals
- Simpson's Rule: uses parabolic segments instead of linear ones to approximate the area
- suitable for smooth, well-behaved functions over small to medium intervals
- Gaussian Quadrature: uses specially chosen sample points and weights.
where w_i are weights and x_i are sample points.
- ideal for high-precision integration, especially when dealing with polynomials
Introduction to Numerical Analysis by F.B. Hildebrand (second edition):
Error analysis can be quite complicated. There are many considerations to make when rounding an infinite sig fig number and depending on your tolerance, your approximation might be significantly hindered by this rounding.
Chapter 4: Finite-difference Interpolation Finite-difference interpolation is used to estimate values of a function at points where it is not explicitly known. It leverages known values of a function at discrete points to construct an interpolating polynomial.
Forward difference -- Del f(x_i) = f(x_i+1) - f(x_i) Backward difference -- nabla f(x_i) = f(x_i) - f(x_i-1) Central difference -- del f(x_i) = 1/2 * (f(x_i+1) - f(x_i-1))
Special formulas like Stirling's, Bessel's, and Everett's are used for more efficient computation and/or higher accuracy.
The technique used should be based on the data distribution and desired accuracy. Precomputed tables enhance efficiency and reduce error.
Chapter 5: Operations with Finite Differences
Euler-Maclaurin Sum Formula connects summation and integration. There are many variations of this and can lead to simplifications such as the trapezoidal rule and the repeated midpoint rule.
Chapter 6: Numerical Solution of Differential Equations Open-type -- domain extends beyond the range of the data Closed-type -- data points at the beginning and end of the limits of integration are known
Simplest procedure is Euler's method: y_n+1 = y_n + h*f(x_n,y_n) More complicated equations such as the Adams-Bashforth method where several levels of differences are calculated and considered when computing the value in question.
Runge-Kutta method. There are variations such as order 2 and order 4. Here is one variation of this formula and performs far better than Euler's method for complicated functions.
Chapter 8: Gaussian Quadrature and Related Topics Gaussian quadrature is a numerical method for approximating integrals using weighted sums at specific points (abscissas). Hermite interpolation -- polynomial interpolation that includes both function values and derivate values at selected points. Legendre-Gauss quadrature - a type of Gaussian quadrature using Legendre polynomials as basis functions. Laguerre-Gauss quadrature - uses Laguerre polynomials and their roots. Effective for integrals involving exponential weight functions. Hermite-Gauss quadrature - Hermite polynomials and their roots with Gaussian weight functions.
Formulas with preassigned abscissas:
An Introduction to Numerical Analysis by Endre Süli and David Mayers:
Chapter 2: Solution of Systems of Linear Equations
Chapter 7 and 10: Numerical Integration
Chapter 12 and 13: Initial Value problems and Boundary Value Problems for ODEs
Chapter 14: The Finite Element Method
Numerical Linear Algebra by Lloyd N. Trefethen and David Bau III:
Part 2: QR Factorization and Least Squares
- A = QR
- Q is an orthogonal matrix: Q^T * Q = I
- start with a set of linearly independent vectors {a1, a2, ... , an}
- generate orthogonal vectors {q1, q2, ... , qn} such that each qi is orthogonal to the previous vectors
- normalize qi to get an orthonormal set
Part 3: Conditioning and Stability
- round-off errors: due to finite precision
- truncation errors: due to approximations in numerical methods
Part 4: Systems of Equations
Part 6: Iterative Methods
Review research articles and books to get a better understanding of different applications of common numerical integration tools.