Zhao Youqin's algorithm was an algorithm devised by Yuan dynasty Chinese astronomer and mathematician Zhao Youqin (Chinese: 赵友钦, ? – 1330) to calculate the value of in his book Ge Xiang Xin Shu (Chinese: 革象新书).
Zhao Youqin started with an inscribed square in a circle with radius r.[1]
If
\ell
| ||||
d=\sqrt{r |
\right)2}
| ||||
e=r-d=r-\sqrt{r |
\right)2}.
Extend the perpendicular line d to dissect the circle into an octagon;
\ell2
\ell | ||||
|
\right)2+e2}
\ell | ||||
|
\sqrt{\ell2+4\left(r-
1 | |
2 |
\sqrt{4r2-\ell2}\right)2}
Let
l3
\ell | ||||
|
\sqrt{
2 | ||
\ell | +4\left(r- | |
2 |
1 | |
2 |
2}\right) | |
\sqrt{4r | |
2 |
2}
similarly
\elln+1=
1 | |
2 |
\sqrt{
2 | ||
\ell | +4\left(r- | |
n |
1 | |
2 |
2}\right) | |
\sqrt{4r | |
n |
2}
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
\pi=3.141592.
He multiplied this number by 113 and obtained 355. From this he deduced that of the traditional values of, that is 3, 3.14, and, the last is the most exact.[2]