The broken bamboo problem is a historical right triangle problem from the Chinese mathematical work The Nine Chapters on the Mathematical
Art.
The earliest surviving diagram of the problem is attributed to Yang Hui's 1261 Detailed
Analysis of the Mathematical Methods in the Nine Chapters (Dauben 2007).
A modern schematic is shown above. A bamboo stalk of height breaks at height above level ground, and its tip touches
the ground at distance from the foot of the stalk. Write for the length of the broken
upper part.