Slope is rise over run. The run is the horizontal distance, not the distance along the slope, which is the hypotenuse of the triangle formed by the rise and the run.
The hypotenuse squared is equal to the sum of the squares of the other two sides of a right triangle.
Or something like that.