Pythagoreanism to have survived as part of, or deeply influenced, the Bacchic cults and Orphism. Pythagoras was already in ancient times well known for the mathematical achievement of the Pythagorean theorem. Although the Babylonians had used this formula for centuries, Pythagoras had discovered that "in a right-angled triangle the square of the hypotenuse is equal to the squares of the other two sides". In ancient times Pythagoras was also noted for his discovery that music had mathematical foundations. Antique sources that credit Pythagoras as the philosopher who first discovered music intervals also credit him as the inventor of the monochord, a
Geometric mean theorem Geometric mean theorem The right triangle altitude theorem or geometric mean theorem is a result in elementary geometry that describes a relation between the lengths of the altitude on the hypotenuse in a right triangle and the two line segments it creates on the hypotenuse. It states that the geometric mean of the two segments equals the altitude. If "h" denotes the altitude in a right triangle and "p" and "q" the segments on the hypotenuse then the theorem can be stated as: or in term of areas: The latter version yields a method to square a rectangle with ruler