Orthogonalize¶
Orthonormalizes a set of vectors using the Gram-Schmidt process with the standard inner product. Linearly dependent vectors collapse to a zero vector.
$ wo 'Orthogonalize[{{1, 2, 2}, {2, 1, 2}}]'
{{1/3, 2/3, 2/3}, {10/(3*Sqrt[17]), -7/(3*Sqrt[17]), 2/(3*Sqrt[17])}}
A linearly dependent vector collapses to a zero vector: