Source: http://mathfle.web4me.fr/IMG/pdf/controle_pythagore.pdf