Yang Hui (c. 1238 - c. 1298) was a Chinese mathematician who worked on magic squares and binomial theorem.