LU
Break a square matrix into a lower and upper triangular pair. Partial pivoting keeps the path numerically honest.
FROM-SCRATCH NUMERICS 01 / 04
A hands-on microscope for the algorithms behind linear algebra. Change a number, run the decomposition, and follow the structure all the way down.
[ 0.400 -0.200 ] [−0.100 0.300 ]
Start with a preset or make your own small matrix. The lab favors readable intermediate results over a single mysterious answer.
Decomposition is not just a computational trick. It is a decision about which structure you want to make visible.
Break a square matrix into a lower and upper triangular pair. Partial pivoting keeps the path numerically honest.
Householder reflections turn a messy matrix into orthogonal directions and a triangular remainder.
For symmetric matrices, Jacobi rotations reveal the directions that remain themselves after transformation.
Every matrix has a set of singular directions. The spectrum tells you what survives, what fades, and what can be compressed.
When no exact answer exists, find the one with the smallest residual and keep the error visible.
Rotate a cloud of observations toward the directions where its variance is doing the most work.
Use the least-squares machinery to recover a simple curve from noisy observations.
The browser lab is a visual companion. The source stays small enough to read in one sitting and honest enough to tinker with.
Loading source reference…