Zhao Youqin's π algorithm is an algorithm devised by Yuan dynasty Chinese astronomer and mathematician Zhao Youqin (赵友钦, ? – 1330) to calculate the value of π in his book Ge Xiang Xin Shu (革象新书).