pythagoras_theorem_by_reverse_method