Bisection, one interval at a time
Watch the bracket contract, inspect every midpoint, and scrub backward and forward through the iterations.
Open the bisection laboratory →Method atlas
This is not a general encyclopedia of numerical analysis. It is a map of the methods that belong to the book and its companion software, with room for demonstrations where seeing the method work is better than another paragraph.
CMNA Laboratory
The laboratory pages turn selected methods into experiments. Change a tolerance, choose a function, walk through individual iterations, and compare the path different algorithms take toward the same answer.
Watch the bracket contract, inspect every midpoint, and scrub backward and forward through the iterations.
Open the bisection laboratory →Put bisection, Newton, and secant on the same problem and compare convergence by residual.
Compare root-finding methods →Start with the computational problem and walk toward the CMNA methods that fit the information you actually have.
Open the method finder →Give R your own integrand and watch the quadratic panels accumulate into a numerical integral.
Open the Simpson laboratory →Paste your own matrix and compare Jacobi with Gauss-Seidel as their residuals shrink—or fail to.
Open the iterative solver lab →Supply an arbitrary R ODE and compare Euler, midpoint, and RK4 while playing through RK4's internal stages.
Open the IVP laboratory →Define your own two-dimensional objective and gradient in R, then watch every descent step cross the sampled landscape.
Open the gradient descent lab →Wilkinson, Hilbert, Runge, Himmelblau, cancellation, unstable stepping, and other examples kept around because they expose numerical assumptions.
Open the Numerical Zoo →Small algorithms that expose evaluation order, accumulated error, and the difference between a formula and a numerically sensible implementation.
naivepolybetterpolyhornerrhornernaivesumkahansumnaivedivlongdivisPrimenthrootquadraticquadratic2fibonacciwilkinsonhimmelblauRow operations, matrix reduction, decompositions, and iterative methods implemented close enough to the mathematics to inspect.
replacerowscalerowswaprowsvecnormdetmatrixinvmatrixrefmatrixrrefmatrixsolvematrixcholeskymatrixlumatrixcgmmatrixgaussseidelJacobi iterationLABjacobitridiagmatrixPolynomial interpolation, splines, Bézier curves, multidimensional interpolators, and an image-resizing application.
linterppolyinterpPiecewise linear interpolationLABpwiselinterpCubic splineLABcubicsplineqbeziercbezierbilinearnnresizeImageNNresizeImageBLFinite-difference formulas for first and second derivatives.
findiffSymmetric differenceLABsymdiffRight differenceLABrdifffindiff2Newton-Cotes rules, Gaussian quadrature, adaptive integration, Romberg integration, Monte Carlo methods, and applications.
midpttrapsimpsimp38gaussintgauss.hermitegauss.laguerregauss.legendreadaptintrombergmcintmcint2shellmethoddiscmethodginiquintileThree classic approaches that make assumptions, robustness, and convergence behavior especially easy to compare.
Continuous and discrete searches, from golden-section and gradient methods through simulated annealing.
goldsectmaxGolden-section minimumLABgoldsectminGradient descentLABgdgdlsgraddscgradaschillclimbingsatspsaInitial-value methods, systems, elementary PDE examples, and boundary-value applications.
eulermidptivprungekutta4adamsbashfortheulersysheatWave equation, 1DLABwavebvpexamplebvpexample10