Zhang Heng on a stamp
Zhang Heng on a stamp

Zhang Heng (simplified Chinese: 张衡; traditional Chinese: 張衡; pinyin: Zhāng Héng; Wade–Giles: Chang Heng) (CE 78–139) was a Chinese astronomer, mathematician, inventor, geographer, cartographer, artist, poet, statesman and literary scholar from Nanyang, Henan. He lived during the Eastern Han Dynasty (CE 25–220) of China. He was educated in the capital cities of Luoyang and Chang'an, and began his career as a minor civil servant in Nanyang. Eventually, he became Chief Astronomer, Prefect of the Majors for Official Carriages, and then Palace Attendant at the imperial court. His uncompromising stances on certain historical and calendrical issues led to Zhang being considered a controversial figure, which prevented him from becoming an official court historian. His political rivalry with the palace eunuchs during the reign of Emperor Shun (r. 125–144) led to his decision to retire from the central court to serve as an administrator of Hejian, in Hebei. He returned home to Nanyang for a short time, before being recalled to serve in the capital once more in 138. He died there a year later, in 139.

Zhang applied his extensive knowledge of mechanics and gears in several of his inventions. He invented the world's first water-powered armillary sphere, to represent astronomical observation; improved the inflow water clock by adding another tank; and invented the world's first seismometer, which discerned the cardinal direction of an earthquake 500 km (310 mi) away. Furthermore, he improved previous Chinese calculations of the formula for pi. In addition to documenting about 2,500 stars in his extensive star catalogue, Zhang also posited theories about the Moon and its relationship to the Sun; specifically, he discussed the Moon's sphericity, its illumination by reflecting sunlight on one side and remaining dark on the other, and the nature of solar and lunar eclipses. His fu (rhapsody) and shi poetry were renowned and commented on by later Chinese writers. Zhang received many posthumous honors for his scholarship and ingenuity, and is considered a polymath by some scholars. Some modern scholars have also compared his work in astronomy to that of Ptolemy (CE 86–161).