Definition · applies to points · also called straight-line distance, $d_2(p, q)$

High school

Consider two points $p = (p_1, \dots, p_n)$ and $q = (q_1, \dots, q_n)$ in $\reals^n$. The Euclidean distance between $p$ and $q$ is the length of the straight segment from $p$ to $q$:

\[d_2(p, q) = \sqrt{(p_1 - q_1)^2 + \dots + (p_n - q_n)^2}.\]
Undergraduate

Consider two points $p = (p_1, \dots, p_n)$ and $q = (q_1, \dots, q_n)$ in $\reals^n$. The Euclidean distance between $p$ and $q$ is

\[d_2(p, q) = \norm{p - q}_2\]

where $\norm{\cdot}$ indicates the Euclidean norm.

Examples

Worked examples

Distinctions involving this term

All definitions · All distinctions · All examples