Yang Hui (simplified Chinese: 杨辉; traditional Chinese: 楊輝; pinyin: Yáng Huī, ca. 1238–1298), courtesy name Qianguang (谦光), was a Chinese mathematician from Qiantang (modern Hangzhou), Zhejiang province during the late Song Dynasty (960-1279 AD). Yang worked on magic squares, magic circles and the binomial theorem, and is best known for his contribution of presenting 'Yang Hui's Triangle'. This triangle was the same as Pascal's Triangle, discovered by Yang's predecessor Jia Xian (贾宪). Yang was also a contemporary to the other famous mathematician Qin Jiushao.
The earliest extant Chinese illustration of 'Pascal's Triangle' is from Yang's book Xiangjie Jiuzhang Suanfa (详解九章算法) of 1261 AD, in which Yang acknowledged that his method of finding square roots and cubic roots using "Yang Hui's Triangle" was invented by mathematician Jia Xian  who expounded it around 1100 AD, about 500 years before Pascal. In his book (now lost) known as Ruji Shisuo (如积释锁) or Piling-up Powers and Unlocking Coefficients, which is known through his contemporary mathematician Liu Ruxie (刘汝谐). Jia described the method used as 'li cheng shi suo' (the tabulation system for unlocking binomial coefficients). It appeared again in a publication of Zhu Shijie's book Jade Mirror of the Four Unknowns (四元玉鉴) of 1303 AD.
Around 1275 AD, Yang finally had two published mathematical books, which were known as the Xugu Zhaiqi Suanfa (续古摘奇算法) and the Suanfa Tongbian Benmo (算法通变本末)(summarily called Yang Hui suan fa 杨辉算法). In the former book, Yang wrote of arrangement of natural numbers around concentric and non concentric circles, known as magic circles and vertical-horizontal diagrams of complex combinatorial arrangements known as magic squares' and magic circles, providing rules for their construction. In his writing, he harshly criticized the earlier works of Li Chunfeng (李淳風) and Liu Yi (刘益), the latter of whom were both content with using methods without working out their theoretical origins or principle. Displaying a somewhat modern attitude and approach to mathematics, Yang once said:
- The men of old changed the name of their methods from problem to problem, so that as no specific explanation was given, there is no way of telling their theoretical origin or basis.
In his written work, Yang provided theoretical proof for the proposition that the complements of the parallelograms which are about the diameter of any given parallelogram are equal to one another. This was the same idea expressed in the Greek mathematician Euclid's (fl. 300 BC) forty-third proposition of his first book, only Yang used the case of a rectangle and gnomon. There were also a number of other geometrical problems and theoretical mathematical propositions posed by Yang that were strikingly similar to the Euclidean system. However, the first books of Euclid to be translated into Chinese was by the cooperative effort of the Italian Jesuit Matteo Ricci and the Ming official Xu Guangqi in the early 17th century.
Yang's writing represents the first in which quadratic equations with negative coefficients of 'x' appear, although he attributes this to the earlier Liu Yi. Yang was also well known for his ability to manipulate decimal fractions. When he wished to multiply the figures in a rectangular field with a breadth of 24 paces 3 4⁄10 ft. and length of 36 paces 2 8⁄10, Yang expressed them in decimal parts of the pace, as 24.68 X 36.56 = 902.3008.
- Fragments of this book was retained in the Yongle Encyclopedia vol 16344, in British Museum Library
- Needham, Volume 3, 134-137.
- Needham, Volume 3, 137.
- Needham, Volume 3, 134-135.
- Needham, Volume 3, 104.
- Needham, Volume 3, 59-60.
- Needham, Volume 3, 105.
- Needham, Volume 3, 106.
- Needham, Volume 3, 46.
- Needham, Volume 3, 45.
- Needham, Joseph (1986). Science and Civilization in China: Volume 3, Mathematics and the Sciences of the Heavens and the Earth. Taipei: Caves Books, Ltd.
- Li, Jimin, "Yang Hui". Encyclopedia of China (Mathematics Edition), 1st ed.