Vector Distance Calculator
Online calculator to calculate the vector distance
The calculator on this page calculates the distance between vectors with 2, 3 or 4 elements.
To calculate, select the number of elements (3 is the default). Enter the values of the two vectors whose distance should be calculated. Then click on the 'Calculate' button
The value 0 is assumed for empty fields.
|
Formula
To find the distance between two vectors use the distance formula
\(d=\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}\)
In the formula, the \(x\) and \(y\) vectors represent the position in a vector space.
Example
The following example calculates the distance between the points \((0, -2, 7)\) and \((8, 4, 3)\).
\(d=\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}\)
\(d=\sqrt{(8-0)^2 + (4-(-2))^2 + (7-3)^2}\)
\(d=\sqrt{(8)^2 + (6)^2 + (4)^2}\)
\(d=\sqrt{64 + 36 +16}\)
\(d=\sqrt{116} = 10,77\)
The distance between the points \((0, -2, 7)\) and \((8, 4,3)\) is \(10.77\)
Vector Functions
Addition • Subtraction • Multiplication • Scalar Multiplication • Division • Scalar Division • Dot Product • Cross Product • Interpolation • Distance • Distance Squaret • Normalization • Reflection • Magnitude • Squared-Magnitude • Triple-Product
|