Errors in numerical computing
Why every numerical solution is approximate, the two error families (round-off and truncation) and how to measure it: numerical, percentage and iterative error.
Type a method, property or formula. Search spans articles, exercises, derivations, comparisons and glossary terms.
129 results
Why every numerical solution is approximate, the two error families (round-off and truncation) and how to measure it: numerical, percentage and iterative error.
How to count significant figures for numbers larger and smaller than 1 and in scientific notation, and where a machine's round-off errors come from.
Taylor's theorem and its remainder, why the remainder is the truncation error, and how finite differences arise from it.
What interpolation is, why polynomials are used, the Weierstrass theorem, uniqueness of the interpolating polynomial and the error bound shared by Newton, Lagrange and Hermite.
The Newton polynomial built in layers with divided differences: linear, quadratic and general form, the difference table, the error and a worked example with real data.
The Lagrange basis functions, the cardinal property that defines them, the polynomial as a direct combination of the data, its error and a worked example with the census data.
Interpolation that imposes value and derivative at each node: the polynomial , its construction from the Lagrange bases, the error, the practical route via divided differences with repeated nodes and a Bessel-function example.
Piecewise interpolation with one cubic per interval: the continuity conditions, the tridiagonal system that fixes the coefficients, natural splines and how to solve them.
Forward, backward and central formulas for the first derivative, their three- and five-point versions, the order of the error and a surprising numerical comparison.
Approximations of the second (and third) derivative by forward, backward and central finite differences, with their error order.
How to combine two approximations with steps and to cancel the dominant error term and raise the order, with the formulas for all terms and for even powers.
The general idea of numerical integration: approximate an integral by a weighted sum of function values, obtained by integrating the Lagrange polynomial.
Closed rules for equally spaced nodes that include the endpoints: trapezoid, Simpson 1/3, Simpson 3/8, Milne and their errors.
Open rules that avoid the endpoints of the interval, with special attention to the simple and composite midpoint rule.
How Gaussian quadrature chooses optimal nodes and weights using orthogonal polynomials: Legendre, Chebyshev, Laguerre and Hermite.
How trapezoid, Simpson and Gauss-Legendre extend to double integrals through product rules and changes of variables.
What an IVP is, when it has a unique solution (Lipschitz condition), how it is discretized, and how systems and higher-order equations reduce to the same scheme.
The simplest one-step method: advance with the slope at the current node. Full derivation along three routes (Taylor, incremental quotient and integration), order, a worked example and the implicit variant.
Averaging the initial slope and a predicted slope yields a second-order method. Full derivation via second-order Taylor and via the trapezoidal rule with an Euler prediction.
The classical Runge-Kutta combines four slopes per step to reach order 4. Full derivation from Simpson's rule and direct extension to ODE systems.
Local and global truncation errors, the definition of convergence and consistency, theoretical orders of the one-step methods and how to estimate the order numerically, with or without an exact solution.
Explicit multistep methods that integrate the ODE by approximating f with its interpolating polynomial over already-computed nodes: full derivation of AB2 with Lagrange, the AB3 and AB4 formulas, their order and how to start them.
Implicit multistep methods that include the new node in the interpolation: full derivation of AM2 (implicit trapezoid), AM4, why they require solving a nonlinear equation and what they gain in exchange.
Combining an explicit method (predictor) with an implicit one of the same order (corrector) to get the accuracy and stability of the implicit without solving equations: ABM2 and ABM4.
What makes an ODE stiff, why explicit methods become unstable with few points, and why implicit, low-order and adaptive-step methods are preferred.
Direct versus iterative methods for Ax=b, the difference between error and residual, the residual stopping criterion and why the condition number decides whether it is reliable.
The splitting A=L+D+U, the choice M=D that defines Jacobi, its component-wise iterative scheme and a worked example.
The choice M=D+L, which reuses each freshly computed component within the same iteration, and why it often converges faster than Jacobi.
The condition that decides convergence, the sufficient strictly-diagonally-dominant criterion, and the convergence radius that measures speed.
How a relaxation parameter ω speeds up the classical methods: relaxed Jacobi (JSOR) and SOR, which generalizes Gauss-Seidel (ω=1).
What solving means, why iterative methods are used, how they are classified (memory, points, derivatives) and which criteria stop the iteration.
The most robust method: halve the interval bracketing the root and keep the half where the sign changes. Explicit error bound and guaranteed convergence.
Rewrite as and iterate: when it converges (), how fast, and the theorem giving the method's order from which derivatives of vanish at the solution.
The reference iterative method: linearize f at the current iterate and jump to the tangent's root. Full derivation along three routes and proof of quadratic order with its error equation.
When is unavailable it is replaced by a divided difference: with two previous iterates (secant, order ) or with an auxiliary evaluation (Steffensen, order 2).
Definition of convergence order and the error equation, their computational estimators COC and ACOC, the efficiency indices and the Kung-Traub conjecture defining optimal methods.
Three techniques to design iterative methods faster than Newton: quadrature formulas, scheme composition (with frozen derivative) and weight functions, with the Chebyshev-Halley and King families.
The problem in several variables: vector fixed-point methods, convergence order with norms, multidimensional ACOC and stopping criteria.
The vector version of Newton's method: the derivative becomes the Jacobian matrix, the quotient becomes one linear system per iteration, and the quadratic order is preserved.
Accounting of per-iteration cost in systems: evaluations per , per Jacobian, cost of the linear solves, efficiency indices and the multidimensional optimality conjecture.
Composition with Newton and frozen Jacobian: how to gain one order by composition without evaluating new Jacobians, and the Traub, Golden Ratio, NA, vector Jarratt and RN (order 5-6) families.
How the truncated Taylor expansion yields the forward, backward and central finite differences of the first derivative.
Where and come from when forcing the polynomial through the points, and how the recursion generates every higher-order coefficient.
How the requirement to equal 1 at one node and 0 at the others forces the product form of the functions.
How to combine two Taylor expansions to eliminate the second derivative and get an order-2 forward difference for the first derivative.
From the error form to the extrapolation formula: why combining and removes the term.
Integrating the linear Lagrange interpolant on [a,b] to obtain the trapezoid rule and its geometric interpretation.
From summing simple trapezoids on n subintervals to the weights 1,2,...,2,1 and the global error.
Replacing the function by a central height to obtain the centred rectangle rule and its error.
Generalising midpoint to n subintervals by using the centre of each block and summing local errors.
From three equally spaced nodes to Simpson's 1, 4, 1 weights by integrating the quadratic Lagrange polynomial.
How imposing exactness up to degree 3 gives the nodes and weights 1 on .
Three independent routes lead to Euler's formula (Taylor, incremental quotient and integration), and the analysis of the Taylor remainder proves the method is first order.
Approximating the derivative at the new node with a backward difference produces the implicit Euler method and the nonlinear equation to solve at each step.
Full derivation of Heun: via the Taylor expansion to second order combined with the two-variable Taylor of f, and via the trapezoidal rule with an Euler prediction.
Applying Simpson's rule to the integral form of the IVP and approximating the unknown slopes with chained internal evaluations produces the classical RK4 and explains its 1, 2, 2, 1 weights.
Full construction of AB2: integral form of the IVP, Lagrange interpolant of f at the two previous nodes, change of variable, integrals computed term by term, local error and generalization to AB3 and AB4.
Full construction of AM2: Lagrange interpolant including the new node, change of variable, computed 1/2-1/2 weights, connection with the trapezoidal rule and local error.
From solving each unknown out of its equation to the matrix form x=−D⁻¹(L+U)x+D⁻¹b.
Newton's formula via the tangent line and via the Fundamental Theorem of Calculus, plus the complete Taylor proof that its error equation is quadratic.
Why the bisection error halves at every iteration, and how to predict in advance how many iterations a given tolerance requires.
Expanding by Taylor around the fixed point yields the method's error equation and proves both the criterion and the order theorem.
The first-order multivariate Taylor expansion linearizes F around the current iterate; setting that linearization to zero gives the Newton step, with the Jacobian in the role of the derivative.
Computing the numerical and percentage error when approximating by .
Approximating by its Taylor series, adding terms until the percentage iterative error drops below 0.05 %.
Taylor series expansion of cos(x) around zero, taking terms up to order 3.
Full construction of the degree-5 Hermite polynomial with three nodes to approximate , step by step.
Full divided-difference table for the 1971–2011 census and estimate of the 2005 population with the degree-4 Newton polynomial.
Building the Lagrange basis functions for the 1971–2011 census and estimating the 2005 population, compared with Newton.
Computing for with the six finite-difference formulas and comparing their errors against the exact value .
Approximating for with forward differences and improving to via Richardson extrapolation.
Approximation of the integral of from 0 to with 4 and 8 subintervals, comparing errors.
Comparing composite trapezoid, simple midpoint and composite midpoint, with absolute and relative errors.
Computing work by integrating F(x)cos(alpha(x)) from a table, using trapezoid, Simpson and midpoint.
Changing variables from [1,1.5] to [-1,1] and applying Gauss-Legendre with n=2 and n=3.
Determining how many nodes guarantee six decimals in an integral with Chebyshev weight.
Transforming a rectangle to [-1,1]×[-1,1] and solving a double integral with n=m=3.
Comparison between double Simpson and Gauss-Legendre for an integral derived from the hemisphere .
Solve for y'=f(t,y) in an ODE given in implicit form and approximate y(3) with two Euler steps and one RK4 step, comparing both results.
Reduce y''−sin y=0 to a first-order system and approximate y(3) with two Euler steps and one vector RK4 step.
On the same logistic IVP, Euler's order is estimated with the exact solution, Heun's by comparing successive meshes without an exact solution, and RK4's, confirming orders 1, 2 and 4.
Full analysis of : the amplification factor of each method, the explicit method's stability condition , the unconditional stability of the implicit one and a numerical check with .
Integration of the SIR epidemic system with the three one-step methods on the same mesh, comparing how the method's order visibly changes the results.
Solving a logistic IVP (Verhulst) with AB2 started with Heun and estimating the order numerically by doubling the number of subintervals.
Comparing the maximum error of AB2, AB4 and the predictor-correctors ABM2 and ABM4 on the same Verhulst IVP.
Solving a 4×4 system with Jacobi and with Gauss-Seidel from x⁰=0, comparing how many iterations each needs for the same tolerance.
A non-diagonally-dominant matrix where Jacobi diverges but Gauss-Seidel converges, decided by computing the spectral radius of each iteration matrix.
Six bisection iterations for cos²x−x=0 on [0,1], with the chain of intervals, the error bound at each step and the prediction of the required number of iterations.
Full application of Newton's method to x=cos²x from x0=0.3: table of iterates, residuals, increments and ACOC tending to the theoretical order 2.
The secant method applied to cos²x−x=0 from x0=0, x1=1: five iterations with explicit divided differences and superlinear convergence on display.
Newton, Halley, Ostrowski, Traub, midpoint, Jarratt and double Newton on test functions with tolerance 10⁻¹⁰⁰: iterations, residuals and ACOC confirming the theoretical orders.
Two Newton steps by hand on the system , : building the Jacobian, solving each step's linear system and visible quadratic convergence towards .
Full solution of , with Newton from : table of iterates, residual and increment norms, and ACOC settling at 2.
Newton, Trapezoids, Golden Ratio, NA, Jarratt and RN on two test systems with tolerance 10⁻¹²: iterations, norms and ACOC, with RN (order 6) as the most effective method.
A method is consistent if its local error tends to zero as the step size shrinks.
Control over how small errors are amplified during the computation.
The property that approximations approach the target value.
The asymptotic rate at which the error decreases.
Sensitivity of the exact problem to perturbations in the data.
The defect left after substituting an approximation into the original equation.
Error introduced by cutting off an expansion or replacing a continuous object with a discrete one.
The two basic measures of the distance between an exact value and its approximation.
Error caused by representing and operating on numbers with finite precision.
The rounding unit of the floating-point system: the maximum relative error of representing a number.
The digits of an approximation that carry reliable information about the exact value.
The local polynomial approximation of a function built from its derivatives at a point.
The points of the domain where the function is known or evaluated.
The recursive coefficients that build the interpolating polynomial in Newton form.
A piecewise-polynomial interpolant with smoothness conditions at the joints.
Growing oscillations near the endpoints when interpolating with high degree at equispaced nodes.
Approximating a definite integral by a weighted sum of function values.
The highest polynomial degree that a quadrature formula integrates exactly.
Combining two approximations with different steps to cancel the leading error term.
The distance between consecutive points of the discretization.
The distinction between computing the new step directly or by solving an equation that contains it.
A property of an ODE that forces explicit methods to take tiny steps for stability.
The set of values for which a method damps the test equation.
A value the iteration function leaves unchanged: .
The rule that decides when an iteration has reached sufficient accuracy.
A matrix in which each diagonal element dominates the sum of the rest of its row.
The largest absolute value of a matrix's eigenvalues; it decides the convergence of linear iterations.
The matrix of partial derivatives that generalizes to systems of several variables.
The size measures used to quantify errors and convergence in several dimensions.
Three scalar root-finding strategies: global safety, local speed and per-iteration cost.
One-step IVP methods: accuracy, evaluations of and practical use.
Linear iterative methods viewed as splittings and through their iteration matrix.
Four ways to interpolate the same data: what information they use, what they cost to build and when each one pays off.
The everyday quadratures compared by nodes, composite error order and the situation where each wins.
The order-2 multistep methods head to head: cost per step, error constant and the price of implicit stability.
No results for that search. Try terms such as order, convergence, Jacobi or truncation.