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
Apollonius's theorem Apollonius's theorem In geometry, Apollonius's theorem is a theorem relating the length of a median of a triangle to the lengths of its side. It states that "the sum of the squares of any two sides of any triangle equals twice the square on half the third side, together with twice the square on the median bisecting the third side". Specifically, in any triangle , if is a median, then It is a special case of Stewart's theorem. For an isosceles triangle with , the median is perpendicular to and the theorem reduces to the Pythagorean theorem for triangle (or