Zhao Youqin'sπ algorithmA page from Zhao Youqin's bookGe Xiang Xin Shu vol 5
Zhao Youqin'sπ algorithm is an algorithm devised byYuan dynasty Chinese astronomer and mathematicianZhao Youqin (赵友钦, ? – 1330) to calculate the value ofπ in his bookGe Xiang Xin Shu (革象新书).
Zhao Youqin started with an inscribed square in a circle withradiusr.[1]
If denotes the length of a side of the square, draw aperpendicular lined from the center of the circle to sidel. Lete denotesr − d. Then from the diagram:
Extend the perpendicular lined to dissect the circle into anoctagon; denotes the length of one side of octagon.
Proceeding in this way, he at last calculated the side of a 16384-gon, multiplying it by 16384 to obtain 3141.592 for a circle with diameter = 1000 units, or
He multiplied this number by 113 and obtained 355. From this he deduced that of the traditional values ofπ, that is 3, 3.14,22/7 and355/113, the last is the most exact.[2]