Quick guide
How to use this calculator
- Enter vector a to project.
- Enter a nonzero direction vector b with the same dimension.
- Read the exact vector projection, its coefficient, and the scalar projection.
Calculation method
Scale the direction vector
The vector projection of a onto b is ((a·b)/(b·b))b. The scalar projection is (a·b)/‖b‖ and may require a labelled square-root approximation. Projection onto the zero vector is undefined.
Worked example
Project onto the x-axis
Project a = ⟨3,4⟩ onto b = ⟨1,0⟩.
proj_b(a) = 3⟨1,0⟩ = ⟨3,0⟩
Supported inputs
Precision and limits
Vector size
General vectors may contain 2–8 components; three-dimensional products require exactly three.
Entry precision
Each signed decimal may contain up to 30 digits and 15 decimal places.
Square roots
Squared magnitudes remain exact. Irrational roots and normalized components are explicitly labelled approximations.
