Vector distance square calculator

Online calculator to calculate the square of the vector distance


The calculator on this page calculates the square of 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. Then click on the 'Calculate' button

The value 0 is assumed for empty fields.


Vector Distance Square Calculator
Number of elements 2    3    4
Input
Vector 1Vector 2

Decimal places
Resultat
Distance2

Square vector distance


To find the distance or its square between two vectors use the distance formula.

\(d^2=(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 square of the distance between the points \((0, -2, 7)\) and \((8, 4, 3)\).

\(d^2=(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2\)

\(d^2=(8-0)^2 + (4-(-2))^2 + (7-3)^2\)

\(d^2=(8)^2 + (6)^2 + (4)^2\)

\(d^2=64 + 36 +16\)

\(d^2=116\)

The square of the distance between the points \((0, -2, 7)\) and \((8, 4, 3)\) is \(116\)

Is this page helpful?            
Thank you for your feedback!

Sorry about that

How can we improve it?