Linear Systems
Gaussian Elimination with Partial Pivoting
Solve a linear system by forward elimination with partial (maximum absolute value) pivoting, then back substitution. Example: [[1,2|4],[2,1|5]] → x1=2, x2=1.
Forward elimination produces an upper triangular system; back substitution then solves for the unknowns.
gaussian-elimination-partial-pivoting
Partial pivoting selects the row with the largest absolute value in the current column as the pivot, improving numerical stability.