Convert a set of linearly independent vectors into an orthogonal or orthonormal basis.
Enter your vectors below, one vector per line. Numbers in a vector should be separated by commas or spaces. The calculator will apply the Gram-Schmidt process to generate two sets of basis vectors.
The number of dimensions will be inferred from the first vector.
Click on any example to load it into the calculator.
A simple case with two vectors in a 2D space.
Vectors:\n3, 1 2, 2
Applying the process to three vectors in 3D.
Vectors:\n1, 1, 1 1, 0, 1 -1, 1, 0
A more complex example in a 4-dimensional space.
Vectors:\n1, 0, 1, 0 1, 1, 1, 1 0, 1, 2, 1
An example with linearly dependent vectors to show how the process handles it.
Vectors:\n1, 1, 0 2, 2, 0 1, 0, 1