Mathematics & Statistics · Linear Algebra & Vectors
Gram-Schmidt Orthogonalization, Vector Projection & Cosine Angle Calculator: inputs, method, and how to read the result
Decompose vector v into parallel projection proj_u(v) and orthogonal Gram-Schmidt component w.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- U Vector X: First vector u x-component.
- U Vector Y: First vector u y-component.
- V Vector X: Second vector v x-component.
- V Vector Y: Second vector v y-component.
What the calculation includes
With the default values shown, Orthogonal Gram-Schmidt Residual ||v_⊥|| is 4 magnitude. The calculation follows Gram-Schmidt & Projection Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing U Vector Y from 0 u_y to 1 u_y changes Orthogonal Gram-Schmidt Residual ||v_⊥|| from 4 magnitude to 3.153 magnitude. This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses exact analytical or standard numerical analysis formulations from NIST DLMF.
- Double-precision floating-point arithmetic has ~15–17 significant decimal digits of precision.
Scope: Global Mathematical & Statistical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: Scientific Calculator, Statistics & Standard Deviation Calculator, Permutations, Combinations, Probability, Sample Size & P-Value Calculator.