Teorema de Pitágoras
The slope (in percent) is then calculated using the Pythagorean theorem: