Computer Science › Algorithms & Software

Numerical Methods

0 of 17
  1. Conditioning and Numerical Stability

    The conditioning of a problem versus the stability of an algorithm, forward and backward error, and why a well-conditioned problem can still be ruined by an unstable formula.

    Read →6 sections11 min
  2. Bisection and Convergence Rate

    Bisection as a numerical method: the bracketing guarantee from the Intermediate Value Theorem, linear convergence, the exact iteration count for a tolerance, and stopping criteria.

    Read →6 sections11 min
  3. Fixed-Point Iteration

    Fixed-point iteration, the contraction condition on the derivative that decides convergence, and how rewriting the same equation changes the outcome.

    Read →6 sections11 min
  4. Newton's Method

    Newton's method derived from the tangent line, quadratic convergence near a simple root, and how it fails: poor starting points, vanishing derivatives, and multiple roots.

    Read →6 sections11 min
  5. Secant Method and Order of Convergence

    The secant method as Newton without a derivative, the formal definition of order of convergence, and how the secant method's order is derived.

    Read →6 sections11 min
  6. LU Decomposition and Partial Pivoting

    LU decomposition as Gaussian elimination with its multipliers recorded, why partial pivoting is required for stability, PA = LU, and reusing the factors across right-hand sides. This pivoting is not the simplex pivot, and the lesson says so.

    Read →6 sections12 min
  7. Iterative Methods: Jacobi and Gauss-Seidel

    Jacobi and Gauss-Seidel iterations for large sparse systems, the diagonal dominance and spectral radius conditions for convergence, and when iteration beats factorization.

    Read →6 sections12 min
  8. The Matrix Condition Number

    The condition number of a matrix, how it bounds the amplification of relative error in Ax = b, and the Hilbert matrix as the classic ill-conditioned case.

    Read →6 sections10 min
  9. Polynomial Interpolation: Lagrange and Newton

    The Lagrange and Newton forms of the same interpolating polynomial, divided differences, the interpolation error formula, and Runge's phenomenon.

    Read →6 sections11 min
  10. Splines

    Piecewise interpolation with linear and cubic splines, the continuity conditions, natural and clamped boundaries, and why splines avoid Runge's oscillation.

    Read →6 sections11 min
  11. Least-Squares Curve Fitting

    Fitting curves by least squares from the numerical side: normal equations versus QR, conditioning, and the choice of basis, building on the linear algebra lesson instead of repeating it.

    Read →6 sections12 min
  12. Trapezoid and Simpson Rules

    The composite trapezoid and Simpson rules derived from interpolation, with their error terms worked on integrals that have known exact values.

    Read →6 sections11 min
  13. Error Orders and Adaptive Quadrature

    The order of a quadrature rule, Richardson extrapolation, and adaptive quadrature that refines only where the error estimate demands it.

    Read →6 sections12 min
  14. Euler's Method and Local vs Global Error

    Euler's method for initial-value problems, local truncation error versus global error, the effect of step size, and a first look at stability.

    Read →6 sections11 min
  15. Runge-Kutta Methods

    Second-order and classical fourth-order Runge-Kutta methods, how they gain order without derivatives of the right-hand side, and adaptive step size.

    Read →6 sections13 min
  16. Choosing a Numerical Method: A Decision Guide

    A decision guide for the whole discipline: given a problem's size, smoothness, and conditioning, choose a method and diagnose why it failed.

    Read →6 sections9 min

Numerical Methods

Part of the Computer Science curriculum.

Sort
1

Sources of Error: Truncation, Rounding, Propagation

Where numerical error comes from: truncating an infinite process, rounding to finite precision, and how both propagate through a computation, with absolute and relative error and loss of significance.

2

Conditioning and Numerical Stability

The conditioning of a problem versus the stability of an algorithm, forward and backward error, and why a well-conditioned problem can still be ruined by an unstable formula.

3

Bisection and Convergence Rate

Bisection as a numerical method: the bracketing guarantee from the Intermediate Value Theorem, linear convergence, the exact iteration count for a tolerance, and stopping criteria.

4

Fixed-Point Iteration

Fixed-point iteration, the contraction condition on the derivative that decides convergence, and how rewriting the same equation changes the outcome.

5

Newton's Method

Newton's method derived from the tangent line, quadratic convergence near a simple root, and how it fails: poor starting points, vanishing derivatives, and multiple roots.

6

Secant Method and Order of Convergence

The secant method as Newton without a derivative, the formal definition of order of convergence, and how the secant method's order is derived.

7

LU Decomposition and Partial Pivoting

LU decomposition as Gaussian elimination with its multipliers recorded, why partial pivoting is required for stability, PA = LU, and reusing the factors across right-hand sides. This pivoting is not the simplex pivot, and the lesson says so.

8

Iterative Methods: Jacobi and Gauss-Seidel

Jacobi and Gauss-Seidel iterations for large sparse systems, the diagonal dominance and spectral radius conditions for convergence, and when iteration beats factorization.

9

The Matrix Condition Number

The condition number of a matrix, how it bounds the amplification of relative error in Ax = b, and the Hilbert matrix as the classic ill-conditioned case.

10

Polynomial Interpolation: Lagrange and Newton

The Lagrange and Newton forms of the same interpolating polynomial, divided differences, the interpolation error formula, and Runge's phenomenon.

11

Splines

Piecewise interpolation with linear and cubic splines, the continuity conditions, natural and clamped boundaries, and why splines avoid Runge's oscillation.

12

Least-Squares Curve Fitting

Fitting curves by least squares from the numerical side: normal equations versus QR, conditioning, and the choice of basis, building on the linear algebra lesson instead of repeating it.

13

Trapezoid and Simpson Rules

The composite trapezoid and Simpson rules derived from interpolation, with their error terms worked on integrals that have known exact values.

14

Error Orders and Adaptive Quadrature

The order of a quadrature rule, Richardson extrapolation, and adaptive quadrature that refines only where the error estimate demands it.

15

Euler's Method and Local vs Global Error

Euler's method for initial-value problems, local truncation error versus global error, the effect of step size, and a first look at stability.

16

Runge-Kutta Methods

Second-order and classical fourth-order Runge-Kutta methods, how they gain order without derivatives of the right-hand side, and adaptive step size.

17

Choosing a Numerical Method: A Decision Guide

A decision guide for the whole discipline: given a problem's size, smoothness, and conditioning, choose a method and diagnose why it failed.