Skip to content
Tactiverge

Mathematical concepts

Pythagoras' theorem

Also called: a² + b² = c² · hypotenuse · distance formula

Definition

In a right-angled triangle, the square of the hypotenuse equals the sum of the squares of the other two sides.

Picture it

It is the distance formula in disguise: moving 3 across and 4 up puts you 5 away. Robots use it every time they compute a straight-line distance to a target from x and y offsets.

The maths

c² = a² + b²
distance = √((x2 − x1)² + (y2 − y1)²)
SI units used in this entry
QuantityUnitSymbol
lengthmetrem

Worked example

A robot at (1.0, 2.0) m must reach a charger at (4.0, 6.0) m. What is the straight-line distance?

  1. Δx = 3.0 m, Δy = 4.0 m
  2. d = √(9 + 16) = √25 = 5 m

Answer5 m.

✓ The number in this answer is recomputed from scratch by an automated test.

Common misconceptions

  • Misconception: It only applies to right-angled triangles; for others use the cosine rule.
  • Misconception: √(a² + b²) is not a + b.