5D Library › Xuankong Flying-Star Permutations, Twenty-Four-Mountain Compass Discretization and Craniofacial Ratio Metrology · 中文
Chapter 7. Shen Kuo on the Compass, and the Texts of Xuankong and Physiognomy
Why read these texts here
The computations of the first three chapters rest on two things: how a compass is read, and how the chart rules are fixed. On the first, Shen Kuo of the Northern Song left in his Mengxi Bitan one of the world’s earliest clear records of magnetic declination, together with a comparison of ways to mount the needle (Needham 1962). The rules of the second come from the Xuankong lineage that begins with Jiang Dahong’s Dili Bianzheng in the Qing, while Shen Zhureng’s Shenshi Xuankong Xue of the Republican era put flying-star charts into the form used today; on the history and practice of feng shui in Chinese society, see Bruun’s study (Bruun 2003). The claims about facial proportions come mostly from the physiognomy manuals of the Mayi Shenxiang family, traditionally attributed to the Daoist Mayi. The Mengxi Bitan passages quoted here have been checked word for word against the edition listed. For the other three works no edition could be obtained for word-by-word checking, so this book only explains their place in the argument and does not quote them.
Mengxi Bitan: the needle points slightly east
Source text
Shen Kuo, Mengxi Bitan, chapter 24, “Miscellany I” (Project Gutenberg edition)
方家以磁石磨針鋒,則能指南,然常微偏東,不全南也,水浮多蕩搖。
指爪及碗唇上皆可為之,運轉尤速,但堅滑易墜,不若縷懸為最善。
其法取新纊中獨茧縷,以芥子許蜡,綴于針腰,無風處懸之,則針常指南。
其中有磨而指北者。余家指南、北者皆有之。磁石之指南,猶柏之指西,莫可原其理。
“Diviners rub the point of a needle with a lodestone, and it then points south; yet it always inclines slightly to the east and does not point due south. Floated on water it is often unsteady. It can also be balanced on a fingernail or on the rim of a bowl, where it turns more freely, but it is hard and smooth and easily falls off; best of all is to hang it from a thread. The method is to take a single filament of new silk, fix it to the middle of the needle with a piece of wax the size of a mustard seed, and hang it where there is no wind; then the needle always points south. Some needles, after rubbing, point north. I have both kinds at home. That a lodestone points south, as the cypress points west, nobody can explain.” (Shen, n.d.)
Shen Kuo recorded three things that matter to this book. First, the needle “always inclines slightly to the east and does not point due south”: this is magnetic declination. Second, he compared four ways to mount the needle: floated on water it is “often unsteady”; on a fingernail or a bowl rim it “turns more freely” but falls off; hung from a single new silk thread it is “best of all”. That is a comparison of measurement errors. Third, he admitted that “nobody can explain” it: he recorded the phenomenon without inventing a cause.
Calculation
# Chapter 7. p14: Shen Kuo's four ways to hang a needle, and the counts
# behind the classical charts.
# Shen Kuo compares a needle floated on water, balanced on a fingernail,
# balanced on the rim of a bowl, and hung from a single silk thread,
# and notes that the needle points slightly east of south. We give each
# method an illustrative reading error sigma (degrees) and compute the
# chance of naming the wrong mountain (15 degrees) or the wrong palace
# (45 degrees) for a uniform facing: E|error| / width, with
# E|error| = sigma sqrt(2 / pi). A steady declination d moves a share
# d / 15 of facings to the next mountain. Last, the counts that frame
# the classical method: 9 periods of 20 years; 24 mountains x 9
# periods ordinary charts; the same again as replacement charts.
import math
METHODS = [("floated on water", 6.0), ("on a fingernail", 4.0),
("on a bowl rim", 4.0), ("hung from a silk thread", 1.5)]
if __name__ == "__main__":
print(" method sigma wrong mountain"
" wrong palace")
for name, s in METHODS:
e = s * math.sqrt(2 / math.pi)
print(" {:24s} {:6.1f} {:16.4f} {:14.4f}".format(
name, s, e / 15, e / 45))
for d in (1.0, 3.0, 5.0):
print(" declination {:.0f} deg moves {:.4f} of facings".format(
d, d / 15))
print("\n periods x years: {} x {} = {} years".format(9, 20, 9 * 20))
print(" ordinary charts: {} x {} = {}".format(24, 9, 24 * 9))
print(" with replacement charts: {}".format(2 * 24 * 9))
# method sigma wrong mountain wrong palace
# floated on water 6.0 0.3192 0.1064
# on a fingernail 4.0 0.2128 0.0709
# on a bowl rim 4.0 0.2128 0.0709
# hung from a silk thread 1.5 0.0798 0.0266
# declination 1 deg moves 0.0667 of facings
# declination 3 deg moves 0.2000 of facings
# declination 5 deg moves 0.3333 of facings
#
# periods x years: 9 x 20 = 180 years
# ordinary charts: 24 x 9 = 216
# with replacement charts: 432The program gives each method an illustrative reading error: 6 degrees floated on water, 4 on a fingernail or a bowl rim, 1.5 hung from silk. For a uniform facing, the floating needle names the wrong mountain with chance 0.3192 and the wrong palace with 0.1064; the hanging needle only 0.0798 and 0.0266. If “slightly east” is 3 degrees, 0.2000 of facings change mountain when it is not corrected. In choosing the silk thread Shen Kuo chose the smallest measurement error; his note on the eastward lean reminds every compass user to state which north is meant.
Xuankong and physiognomy: structure, not quotation
The structures used in Chapters 1 and 2, the three eras and nine periods (20 years each, 180 years in all), the twenty-four mountains, mountain and facing stars flying forward or backward by the polarity of the earth, heaven and man positions, and replacement charts, belong to the Xuankong flying-star lineage opened by Jiang Dahong’s Dili Bianzheng and systematised in the Shenshi Xuankong Xue. Under these rules there are 24 × 9 = 216 ordinary charts, and 432 including replacement charts; the last part of the program lists these counts. The book writes the rules in the convention in common use today and states them item by item in Chapters 1 and 2; where conventions differ (for instance, on the direction of flight after replacement), it computes both and does not adjudicate between schools.
The physiognomy manuals of the Mayi Shenxiang family describe the face by structures such as the three thirds, the five peaks and the twelve palaces. Chapters 4 and 5 discuss only the measurable part (the proportions of thirds and eyes) and the base rates, perspective and errors of measuring them; the book quotes no manual and judges no reading.
Summary
Shen Kuo’s note contains both the discovery of declination and a comparison of measurement errors, and his “nobody can explain” models the habit of recording without inventing. The texts of flying stars and physiognomy serve this book only as the source of rules and structures; their rules can be written as exact arithmetic, and the arithmetic itself contains no fortune.
References
Fan, Y. (2026). Xuankong Flying-Star Permutations, Twenty-Four-Mountain Compass Discretization and Craniofacial Ratio Metrology: Lo-Shu Orbit Cycles, Magnetic Declination Flip Rates and Landmark Measurement Error Propagation [玄空飞星置换代数、二十四山罗盘离散化与骨相比例计量] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090215 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).