<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Numerical Analysis on Teddy Rook Book</title><link>https://teddyrookbook.com/math/numerical-analysis/</link><description>Recent content in Numerical Analysis on Teddy Rook Book</description><image><title>Teddy Rook Book</title><url>https://teddyrookbook.com/img/share.jpg</url><link>https://teddyrookbook.com/img/share.jpg</link></image><generator>Hugo</generator><language>en</language><atom:link href="https://teddyrookbook.com/math/numerical-analysis/index.xml" rel="self" type="application/rss+xml"/><item><title>Absolute and Relative Error</title><link>https://teddyrookbook.com/math/numerical-analysis/error-measures/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/error-measures/</guid><description>Absolute error is |approximation − true value|; relative error divides by |true value| and tells how many significant digits are correct. Numerical Analysis · Math Ladder</description></item><item><title>Binary Fractions</title><link>https://teddyrookbook.com/math/numerical-analysis/binary-fractions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/binary-fractions/</guid><description>Convert a decimal fraction to base 2 by doubling and keeping the whole-number parts: 0.1 becomes 0.000110011… and never ends. Numerical Analysis · Math Ladder</description></item><item><title>Floating-Point Numbers</title><link>https://teddyrookbook.com/math/numerical-analysis/floating-point/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/floating-point/</guid><description>A float stores ±1.f × 2ᵉ with a fixed number of bits, so the gaps between floats grow with their size; machine epsilon, 2⁻⁵² ≈ 2.2 × 10⁻¹⁶ in double precision, sets the relative precision. Numerical Analysis · Math Ladder</description></item><item><title>Round-Off and Cancellation</title><link>https://teddyrookbook.com/math/numerical-analysis/cancellation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/cancellation/</guid><description>Subtracting nearly equal numbers wipes out correct digits; rewrite the formula to avoid it, as in √(x + 1) − √x = 1/(√(x + 1) + √x). Numerical Analysis · Math Ladder</description></item><item><title>Truncation Error and Order of Accuracy</title><link>https://teddyrookbook.com/math/numerical-analysis/truncation-error/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/truncation-error/</guid><description>Stopping an infinite process, such as a Taylor series or a limit, leaves truncation error; an error of order hᵖ shrinks by a factor of about 2ᵖ when h is halved. Numerical Analysis · Math Ladder</description></item><item><title>Conditioning of a Problem</title><link>https://teddyrookbook.com/math/numerical-analysis/conditioning/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/conditioning/</guid><description>The condition number κ = |x f′(x)/f(x)| says how much a relative change in the input is magnified in the output, whatever method is used. Numerical Analysis · Math Ladder</description></item><item><title>Stable and Unstable Algorithms</title><link>https://teddyrookbook.com/math/numerical-analysis/stability/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/stability/</guid><description>A stable algorithm gives the exact answer to a slightly changed problem, so two formulas for the same quantity can behave very differently in floating point. Numerical Analysis · Math Ladder</description></item><item><title>Horner's Method</title><link>https://teddyrookbook.com/math/numerical-analysis/horner/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/horner/</guid><description>Evaluate a polynomial by nesting, ((aₙx + aₙ₋₁)x + ⋯)x + a₀, with only n multiplications and n additions. Numerical Analysis · Math Ladder</description></item><item><title>The Bisection Method</title><link>https://teddyrookbook.com/math/numerical-analysis/bisection/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/bisection/</guid><description>Keep halving an interval where f changes sign; after n steps the midpoint is within (b − a)/2ⁿ⁺¹ of a root. Numerical Analysis · Math Ladder</description></item><item><title>Fixed-Point Iteration</title><link>https://teddyrookbook.com/math/numerical-analysis/fixed-point-iteration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/fixed-point-iteration/</guid><description>Rewrite f(x) = 0 as x = g(x) and repeat xₙ₊₁ = g(xₙ); it converges near the fixed point when |g′| &amp;lt; 1 there. Numerical Analysis · Math Ladder</description></item><item><title>Order of Convergence</title><link>https://teddyrookbook.com/math/numerical-analysis/convergence-order/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/convergence-order/</guid><description>If eₙ₊₁ ≈ C eₙᵖ, the method has order p: a linear method gains about the same number of digits each step, and a quadratic one doubles them. Numerical Analysis · Math Ladder</description></item><item><title>Newton's Method: Speed and Failure</title><link>https://teddyrookbook.com/math/numerical-analysis/newton-convergence/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/newton-convergence/</guid><description>Near a simple root, Newton&amp;#39;s method converges quadratically; a poor start, a tangent that is nearly flat, or a multiple root can make it fail or slow down. Numerical Analysis · Math Ladder</description></item><item><title>The Secant Method</title><link>https://teddyrookbook.com/math/numerical-analysis/secant-method/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/secant-method/</guid><description>Replace f′ with the slope through the last two points; it needs no derivative, and its order is about 1.618. Numerical Analysis · Math Ladder</description></item><item><title>Newton's Method for Systems</title><link>https://teddyrookbook.com/math/numerical-analysis/newton-systems/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/newton-systems/</guid><description>Solve J(x) Δ = −F(x) with the Jacobian matrix J, then update x to x + Δ. Numerical Analysis · Math Ladder</description></item><item><title>The Cost of Elimination</title><link>https://teddyrookbook.com/math/numerical-analysis/operation-counts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/operation-counts/</guid><description>Gaussian elimination takes about 2n³/3 arithmetic operations and each triangular solve about n², so doubling n multiplies the work by about 8. Numerical Analysis · Math Ladder</description></item><item><title>Partial Pivoting</title><link>https://teddyrookbook.com/math/numerical-analysis/partial-pivoting/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/partial-pivoting/</guid><description>Before each elimination step, swap up the row whose entry in the pivot column is largest in size, so tiny pivots do not magnify round-off. Numerical Analysis · Math Ladder</description></item><item><title>Solving with PA = LU</title><link>https://teddyrookbook.com/math/numerical-analysis/lu-solve/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/lu-solve/</guid><description>Factor once with pivoting, then solve Ly = Pb by forward substitution and Ux = y by back substitution for each new right-hand side b. Numerical Analysis · Math Ladder</description></item><item><title>Vector and Matrix Norms</title><link>https://teddyrookbook.com/math/numerical-analysis/norms/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/norms/</guid><description>Measure size with ‖x‖₁, ‖x‖₂ and ‖x‖∞; the matching matrix norms ‖A‖₁ and ‖A‖∞ are the largest absolute column sum and the largest absolute row sum. Numerical Analysis · Math Ladder</description></item><item><title>The Condition Number of a Matrix</title><link>https://teddyrookbook.com/math/numerical-analysis/condition-number/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/condition-number/</guid><description>κ(A) = ‖A‖ ‖A⁻¹‖ bounds how much a relative change in b can grow in x; a small residual does not guarantee a small error. Numerical Analysis · Math Ladder</description></item><item><title>Jacobi Iteration</title><link>https://teddyrookbook.com/math/numerical-analysis/jacobi/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/jacobi/</guid><description>Solve each equation for its own variable and update every variable at once from the previous values; strict diagonal dominance guarantees convergence. Numerical Analysis · Math Ladder</description></item><item><title>Gauss–Seidel Iteration</title><link>https://teddyrookbook.com/math/numerical-analysis/gauss-seidel/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/gauss-seidel/</guid><description>Use each new value as soon as it is computed; for strictly diagonally dominant systems it converges, usually faster than Jacobi. Numerical Analysis · Math Ladder</description></item><item><title>Lagrange Interpolation</title><link>https://teddyrookbook.com/math/numerical-analysis/lagrange/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/lagrange/</guid><description>Exactly one polynomial of degree at most n passes through n + 1 points with different x-values; build it from basis polynomials that are 1 at one node and 0 at the others. Numerical Analysis · Math Ladder</description></item><item><title>Newton's Divided Differences</title><link>https://teddyrookbook.com/math/numerical-analysis/divided-differences/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/divided-differences/</guid><description>Build the interpolating polynomial one point at a time from a table of divided differences, without starting over. Numerical Analysis · Math Ladder</description></item><item><title>Interpolation Error</title><link>https://teddyrookbook.com/math/numerical-analysis/interpolation-error/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/interpolation-error/</guid><description>f(x) − p(x) = f⁽ⁿ⁺¹⁾(ξ)/(n + 1)! · (x − x₀)(x − x₁)⋯(x − xₙ) for some ξ in the interval. Numerical Analysis · Math Ladder</description></item><item><title>Runge's Phenomenon and Chebyshev Nodes</title><link>https://teddyrookbook.com/math/numerical-analysis/runge-chebyshev/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/runge-chebyshev/</guid><description>High-degree interpolation at equally spaced points can swing wildly near the ends; Chebyshev nodes, bunched toward the ends, fix it. Numerical Analysis · Math Ladder</description></item><item><title>Cubic Splines</title><link>https://teddyrookbook.com/math/numerical-analysis/cubic-splines/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/cubic-splines/</guid><description>Join cubic pieces that match values, slopes and second derivatives at the knots; a natural spline has second derivative 0 at both ends. Numerical Analysis · Math Ladder</description></item><item><title>Finite-Difference Derivatives</title><link>https://teddyrookbook.com/math/numerical-analysis/finite-differences/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/finite-differences/</guid><description>The forward difference (f(x + h) − f(x))/h has error of order h; the central difference (f(x + h) − f(x − h))/(2h) has error of order h². Numerical Analysis · Math Ladder</description></item><item><title>The Best Step Size</title><link>https://teddyrookbook.com/math/numerical-analysis/step-size-tradeoff/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/step-size-tradeoff/</guid><description>Shrinking h cuts truncation error but magnifies round-off, so the total error is smallest at a moderate h, about 10⁻⁸ for a forward difference in double precision. Numerical Analysis · Math Ladder</description></item><item><title>Richardson Extrapolation</title><link>https://teddyrookbook.com/math/numerical-analysis/richardson/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/richardson/</guid><description>Combine results at h and h/2 to cancel the leading error term: for a method with error of order h², use (4A(h/2) − A(h))/3. Numerical Analysis · Math Ladder</description></item><item><title>Error in the Trapezoid and Simpson's Rules</title><link>https://teddyrookbook.com/math/numerical-analysis/composite-rules/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/composite-rules/</guid><description>The composite trapezoid rule has error of order h² and Simpson&amp;#39;s rule of order h⁴, so halving h cuts the error by about 4 or 16. Numerical Analysis · Math Ladder</description></item><item><title>Romberg Integration</title><link>https://teddyrookbook.com/math/numerical-analysis/romberg/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/romberg/</guid><description>Apply Richardson extrapolation to trapezoid estimates again and again to fill a triangle of better and better values. Numerical Analysis · Math Ladder</description></item><item><title>Gaussian Quadrature</title><link>https://teddyrookbook.com/math/numerical-analysis/gaussian-quadrature/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/gaussian-quadrature/</guid><description>Choose the nodes as well as the weights: two points at ±1/√3 integrate every cubic exactly on [−1, 1]. Numerical Analysis · Math Ladder</description></item><item><title>Adaptive Integration</title><link>https://teddyrookbook.com/math/numerical-analysis/adaptive-quadrature/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/adaptive-quadrature/</guid><description>Compare Simpson&amp;#39;s rule on an interval with Simpson&amp;#39;s rule on its two halves; the difference divided by 15 estimates the error, and only the intervals that fail the test are split. Numerical Analysis · Math Ladder</description></item><item><title>Local and Global Error</title><link>https://teddyrookbook.com/math/numerical-analysis/ode-error/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/ode-error/</guid><description>Each Euler step makes a local error of order h², and the 1/h steps together leave a global error of order h. Numerical Analysis · Math Ladder</description></item><item><title>Systems and Higher-Order Equations</title><link>https://teddyrookbook.com/math/numerical-analysis/ode-systems-numerical/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/ode-systems-numerical/</guid><description>Rewrite y″ = f(t, y, y′) as a first-order system, then take Euler or Runge–Kutta steps with vectors. Numerical Analysis · Math Ladder</description></item><item><title>Stability of Euler's Method</title><link>https://teddyrookbook.com/math/numerical-analysis/absolute-stability/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/absolute-stability/</guid><description>For y′ = λy with λ &amp;lt; 0, Euler&amp;#39;s method gives yₙ = (1 + hλ)ⁿ y₀, which stays bounded only when |1 + hλ| ≤ 1, that is, when h ≤ 2/|λ|. Numerical Analysis · Math Ladder</description></item><item><title>Backward Euler and Stiff Equations</title><link>https://teddyrookbook.com/math/numerical-analysis/implicit-euler/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/implicit-euler/</guid><description>Backward Euler uses the slope at the new point, so each step means solving for yₙ₊₁; for y′ = λy with λ &amp;lt; 0 it is stable for every step size. Numerical Analysis · Math Ladder</description></item><item><title>Multistep Methods</title><link>https://teddyrookbook.com/math/numerical-analysis/multistep/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/multistep/</guid><description>Adams–Bashforth methods reuse earlier slopes, as in yₙ₊₁ = yₙ + (h/2)(3fₙ − fₙ₋₁), and need a one-step method to get started. Numerical Analysis · Math Ladder</description></item><item><title>Boundary Value Problems by Finite Differences</title><link>https://teddyrookbook.com/math/numerical-analysis/bvp-finite-differences/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/bvp-finite-differences/</guid><description>Replace y″ by (yᵢ₊₁ − 2yᵢ + yᵢ₋₁)/h² at each inside grid point to get a tridiagonal linear system. Numerical Analysis · Math Ladder</description></item><item><title>The Heat Equation: An Explicit Scheme</title><link>https://teddyrookbook.com/math/numerical-analysis/heat-explicit/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/heat-explicit/</guid><description>uᵢⁿ⁺¹ = uᵢⁿ + r(uᵢ₊₁ⁿ − 2uᵢⁿ + uᵢ₋₁ⁿ) with r = kΔt/Δx² is stable only when r ≤ 1/2. Numerical Analysis · Math Ladder</description></item><item><title>Least Squares with QR</title><link>https://teddyrookbook.com/math/numerical-analysis/least-squares-qr/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/least-squares-qr/</guid><description>Solve Rx = Qᵀb instead of the normal equations, because forming AᵀA squares the condition number. Numerical Analysis · Math Ladder</description></item><item><title>The Power Method</title><link>https://teddyrookbook.com/math/numerical-analysis/power-method/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/power-method/</guid><description>Multiply by A and rescale, again and again; the vector turns toward the dominant eigenvector at a rate set by |λ₂/λ₁|. Numerical Analysis · Math Ladder</description></item><item><title>Inverse and Shifted Power Methods</title><link>https://teddyrookbook.com/math/numerical-analysis/inverse-iteration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/inverse-iteration/</guid><description>Run the power method on (A − sI)⁻¹, solving a system each step instead of inverting, to find the eigenvalue of A closest to the shift s. Numerical Analysis · Math Ladder</description></item><item><title>Gershgorin Disks</title><link>https://teddyrookbook.com/math/numerical-analysis/gershgorin/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/gershgorin/</guid><description>Every eigenvalue lies in a disk centered at a diagonal entry aᵢᵢ, with radius equal to the sum of the other |aᵢⱼ| in that row. Numerical Analysis · Math Ladder</description></item><item><title>The QR Algorithm</title><link>https://teddyrookbook.com/math/numerical-analysis/qr-algorithm/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/numerical-analysis/qr-algorithm/</guid><description>Factor Aₖ = QₖRₖ and set Aₖ₊₁ = RₖQₖ; each new matrix is similar to A, and its diagonal approaches the eigenvalues. Numerical Analysis · Math Ladder</description></item></channel></rss>