Log Stuck in a Wall

Now given a cylindrical log of unknown size buried in a wall.  When sawn one cun deep, it shows a breadth of 10 cun.  What is the diameter of the log?

Jiuzhang Suanshu (The Nine Chapters on the Mathematical Art), c. 100 BCE

Click here to reveal the answer