Source: http://www.promath.fr/boutoille/4e/exercices/07_reciproque_pythagore.pdf