Exercise: error of the sin x ≈ x approximation
Computing the numerical and percentage error when approximating by .
Worked problems with concrete data and their detailed solution.
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.