Math and physics of the ancient world