Perform and visualize linear algebra operations — from solving systems of equations to animating matrix transformations.
Functions
SolveSystemOfEquations
Solve a system of linear equations and display the solution with the augmented matrix.
from analysistoolbox.linear_algebra import SolveSystemOfEquations
# Solve: 2x + y = 5, x - y = 1
solution = SolveSystemOfEquations(
coefficient_matrix=[[2, 1], [1, -1]],
constant_vector=[5, 1]
)
CalculateEigenvalues
Compute eigenvalues and eigenvectors with visualization.
ConvertMatrixToRowEchelonForm
Step-by-step Gaussian elimination — useful for teaching.
ConvertSystemOfEquationsToMatrix
Convert a list of equation strings to matrix form.
PlotVectors
Visualize vectors in 2D or 3D space with customizable colors and labels.
VisualizeMatrixAsLinearTransformation
Animate how a matrix transforms the coordinate plane — the best way to build intuition for linear transformations.
Use cases
- Teaching linear algebra concepts
- Engineering and physics problem solving
- Understanding PCA and other matrix-based methods