Matrix columns

Each column of A is treated as a vector. Integers, fractions such as 1/2, and finite decimals are exact. Empty rows are ignored and empty cells are rejected. At most 16 rows and columns.

Normalized-entry display

Orthogonal & orthonormal basis

V — unnormalized orthogonal basis

vj = aj − Σi<j ((aj·vi)/ (vi·vi)) vi, entirely in exact rationals.

1	1/2
1	-1/2
0	1
  • v1 = (1, 1, 0) v·v = 2
  • v2 = (1/2, -1/2, 1) v·v = 3/2

Q — orthonormal basis

qj = vj / sqrt(vj·vj). Each entry is an exact r/sqrt(s) value.

1/sqrt(2)	(1/2)/sqrt(3/2)
1/sqrt(2)	(-1/2)/sqrt(3/2)
0	1/sqrt(3/2)
  • q1 = (1/sqrt(2), 1/sqrt(2), 0)
  • q2 = ((1/2)/sqrt(3/2), (-1/2)/sqrt(3/2), 1/sqrt(3/2))

Thin QR factorization

Q is 3×2, R = QᵀA is 2×2, and A = QR with R upper triangular and a positive diagonal.

R = QᵀA

2/sqrt(2)	1/sqrt(2)
0	(3/2)/sqrt(3/2)
  • Diagonal: 2/sqrt(2), (3/2)/sqrt(3/2)

Exact reconstruction checks

QᵀQ = I
exact
QR = A
exact
Columns of V orthogonal
exactly
Positive squared norms
yes
R triangular with positive diagonal
yes