freeCodeCamp/guide/english/mathematics/the-distance-formula/index.md

9 lines
691 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: The Distance Formula
---
## The Distance Formula
<a href="https://www.codecogs.com/eqnedit.php?latex=\mathrm{Distance}=\sqrt{(x_{2}&plus;x_{1})^2&space;&plus;&space;(y_{2}&space;&plus;&space;y_{1})^2}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\mathrm{Distance}=\sqrt{(x_{2}&plus;x_{1})^2&space;&plus;&space;(y_{2}&space;&plus;&space;y_{1})^2}" title="\mathrm{Distance}=\sqrt{(x_{2}+x_{1})^2 + (y_{2} + y_{1})^2}" /></a>
2018-10-12 19:37:13 +00:00
This formula can be used to calculate the distance between two points in a coordinate system, with (x<sub>1</sub>, y<sub>1</sub>) being the coordinates of one point and (x<sub>2</sub>, y<sub>2</sub>) being the coordinates of the other.
2018-10-12 19:37:13 +00:00