More Code tools →83 free dev tools →
Zero-dependency JavaScript library for exact-fraction linear algebra with step-by-step RREF, determinant and eigen calculations.
- for
- Developers, educators and students needing precise symbolic linear-algebra results in Node.js or browsers.
- pricing
- open source
Key features
- Zero runtime dependencies — Uses only native BigInt fractions, avoiding any floating-point drift.
- Flexible input formats — Accepts integers, decimals, bigint and string fractions like "7/4".
- Gauss-Jordan RREF with logging — Performs row swaps, scaling and elimination, returning each operation as a readable step.
- Determinant by cofactor expansion — Computes 2×2 to 4×4 determinants showing every minor and cofactor.
- Eigenvalues & eigenvectors — Derives characteristic polynomial, exact rational roots and eigenvectors for 2×2 and 3×3 matrices.
- SymPy-validated results — Test suite checks 39 cases against SymPy outputs for correctness.
Use cases
- Solve systems of linear equations with a full audit trail of row operations.
- Generate exact determinant values for educational assignments without rounding errors.
- Compute eigenvalues/eigenvectors for small matrices in a tutoring or visualization tool.
matrix-rref-steps FAQ
How do I install the library?+
Run npm install matrix-rref-steps and require or import the functions in your code.
What formats can I pass as matrix entries?+
You can use numbers, decimals (parsed to exact fractions), bigint values, or strings like "7/4".
Does the library handle floating-point numbers?+
All arithmetic is performed with exact rational fractions; numeric approximations are only returned when you request a numeric version.
What size matrices are supported?+
RREF works for any size; determinants are supported for 2×2-4×4, and eigen calculations for 2×2 and 3×3 matrices.
Is there a test suite to verify correctness?+
Yes, the repository includes tests that compare 39 results against SymPy’s matrix outputs.
Summarized by DevHunt from github.com · Dec 4, 2026. Details may change; check the official site.
More Code tools
Alternatives: Onlook alternatives
Makers: @user_cc08d0 · @GustavoPaixao_f203ff · @johnrush · @boristane · @Rachid_5780d4
Also popular in Code: Pinemix, Ars, NitroIDE
All Code tools








