Liu Hui
, are two right angle triangles. Liu Hui used the Pythagorean theorem repetitively: