Pythagorean theorem
The slope (in percent) is then calculated using the Pythagorean theorem: