{{ summaryTitle }}
{{ summaryValue }}

{{ summaryLine }}

Rank A{{ resultsReady ? analysis.rank : '—' }} Tolerance{{ resultsReady ? formatScientific(analysis.effective_tolerance) : '—' }} Condition{{ resultsReady ? conditionLabel : '—' }}

{{ primaryCopyAnnouncement }}

Matrix operation inputs
Choose one operation; Matrix B appears only when the operation uses it.
One row per line; use spaces or commas between finite values.
{{ matrixBHelp }}
The neutral default is 0, which applies the scale-aware automatic tolerance.
{{ analysis.result_text }}
Calculation method:
Review dimensions, tolerance, and residual before reusing floating-point results.
{{ analysis.algorithm }}
{{ row.label }}
{{ row.value }}
{{ methodCopyAnnouncement }}
{{ chartExportStatus }}

The chart renderer is unavailable. The same cell values remain available in the matrix result.

CheckValueMeaningCopy
{{ row.label }}{{ row.value }}{{ row.meaning }}
{{ auditExportStatus }}

A matrix organizes numbers by row and column so a whole system can be transformed at once. The shape is part of the mathematics. Two matrices can be added only when both shapes match, while multiplication links the columns of the first matrix to the rows of the second.

Some operations answer structural questions rather than producing another same-shaped grid. A determinant indicates whether a square matrix is singular and how it scales oriented area or volume. Rank counts independent directions at a chosen numerical tolerance. An inverse or solution exists uniquely only when the coefficient matrix is square and full rank.

Matrix operations, dimension requirements, and output shapes
OperationDimension requirementResult
Add or subtractA and B have identical rows and columnsThe same shape as A and B.
Multiply A × BColumns of A equal rows of BRows of A × columns of B.
Transpose AAny rectangular ARows and columns exchanged.
Determinant or inverseA is squareA scalar determinant or square inverse.
RankAny rectangular AA scalar pivot count.
Solve A × X = BA is square; B has the same row countOne solution column for each column of B.

Exact-looking input does not guarantee an exact floating-point result. Near-dependent rows can make a matrix numerically singular even when its determinant is not symbolically zero. A pivot tolerance decides which small values count as zero, and an ill-conditioned matrix can magnify tiny input or rounding changes into large changes in an inverse or solution.

For learning, checking small examples, and exploring numerical behavior, the result, rank, residual, and condition estimate belong together. Sensitive scientific, engineering, or financial work should reproduce the calculation in validated numerical software with appropriate precision and error analysis.

How to Use This Tool:

Choose the operation first so the required matrix shapes are clear before entering values.

  1. Select Operation. Matrix B appears only for multiplication, addition, subtraction, and solving A × X = B.
  2. Enter Matrix A with one row per line and spaces or commas between values. Semicolons may also separate rows.
  3. Enter Matrix B when required and match the dimension rule shown for the selected operation.
  4. Leave Pivot tolerance at 0 for a scale-aware automatic threshold. Use a positive override only when you understand how it changes rank and singularity decisions.
  5. If no result appears, fix the first reported shape, rectangularity, finite-number, or singularity error. Matrices are limited to 6 rows and 6 columns.
  6. Read the matrix or scalar result together with Rank A, effective tolerance, condition estimate, and any reconstruction residual before copying the answer.

Interpreting Results:

The displayed matrix is the answer for the selected operation. The heatmap helps locate large positive and negative cells, but color is not evidence of numerical accuracy. Use the audit values to decide how much confidence to place in the digits.

  • Effective tolerance is the pivot threshold used for rank and singularity decisions. Raising it can reduce the reported rank or make inverse and solve unavailable.
  • Rank A is the number of accepted pivots. A square matrix needs full rank for a unique inverse or solution.
  • Reconstruction residual is ‖A × A−1 − I‖ for an inverse or ‖A × X − B‖ for a solve. Smaller is better, but scale and conditioning still matter.
  • Condition estimate measures sensitivity for square invertible A. A large value means small input changes or rounding can cause much larger result changes.

A zero residual in displayed precision does not prove an exact symbolic answer. Verify ill-conditioned, high-magnitude, or consequential results with independent software and a precision level suited to the data.

Technical Details:

Entry-wise arithmetic and transpose are direct transformations. Multiplication uses row-by-column dot products. Rank, determinant, inverse, and solving use Gaussian elimination or LU factorization with partial pivot selection, so pivot size and rounding affect the result.

Formula Core:

For compatible matrices, the core element rules are:

Cij=Aij±Bij (AB)ij=k=1pAikBkj (AT)ij=Aji AX=B AA1=I

In multiplication, p is the shared inner dimension. Solving and inversion require a nonsingular square A. A determinant is the sign from row interchanges multiplied by the diagonal pivots of the LU factorization.

Mechanism Core:

Partial pivoting chooses the largest available magnitude in the current column and swaps that row into the pivot position. Elimination then produces lower- and upper-triangular factors. The same factorization supports determinant, inverse, and solve calculations.

PA=LU τauto=d×ε×max(1,maxij|aij|) κ(A)=A×A1

Here d is the largest active matrix dimension, ε is Binary64 machine epsilon, and the maximum covers the absolute entries of the matrices used by the operation. A positive tolerance override replaces this automatic value.

Condition estimate interpretation thresholds
Condition estimateStatusInterpretation
< 108StableSuitable for bounded exploration, with independent verification for sensitive use.
≥ 108 and < 1012CautionSmall input changes may materially affect the result.
≥ 1012SevereVerify displayed digits with an independent numerical package.
Singular at toleranceSingularInverse is unavailable and A × X = B has no unique solution under that threshold.

Inputs are bounded to 1 to 6 rows and columns, 1,200 source characters per matrix, finite entries with magnitude at most 10100, and a tolerance from 0 to 1. Results use Binary64 floating-point arithmetic and are formatted to about 11 significant digits.

Accuracy Notes:

  • This is bounded numeric arithmetic, not symbolic or arbitrary-precision algebra.
  • Eigenvalues, singular-value decomposition, least-squares solutions, sparse matrices, and complex numbers are not included.
  • A tolerance is an interpretation choice. It can change rank, determinant treatment, and whether inverse or solve succeeds.
  • Residual and condition evidence help expose risk but do not provide a formal error bound for every result cell.

Worked Examples:

Matrix multiplication

Multiplying A = [[1, 2], [3, 4]] by B = [[5, 6], [7, 8]] gives [[19, 22], [43, 50]]. Each output cell is one row of A dotted with one column of B.

Solving two equations

For A = [[3, 1], [1, 2]] and B = [[9], [8]], solving A × X = B gives X = [[2], [3]]. With a 10−12 tolerance, the reconstruction residual is 0 in Binary64 arithmetic and the infinity-norm condition estimate is 3.2.

References: