Pourcentage, Pythagore et trigonométrie