Goes live November 25, 2031

It appears on the home page and opens for votes when its launch week starts.

matrix-rref-steps

matrix-rref-steps

Zero-dependency exact-fraction linear algebra with step-by-step derivations

FreeCode3 impressionslaunches Nov 251 comment

Comments

>log in to comment
  • David Hoot[maker]· 2d ago

    matrix-rref-steps is an open-source step-by-step math solver library from MathAI GPT (https://mathaigpt.com). It returns exact fractions with every Gauss-Jordan row operation, determinant expansion and eigenvalue derivation written out. Feedback welcome!

Open-source step-by-step math solver library from MathAI GPT (https://mathaigpt.com). Zero-dependency, exact-fraction linear algebra: Gauss-Jordan RREF, 2x2-4x4 cofactor determinants, and 2x2/3x3 eigenvalues & eigenvectors with step-by-step derivations.

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
works withNode.jsTypeScriptModern browsers

Key features

6 features of matrix-rref-steps
  • 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.