关于「紫气与四余约定格:一个纯历法虚点的可辨识性」,《七政四余的天文与误差》给出的定量结论是什么?
结论:第三章说明紫气是纯历法虚点,两种读法在 0.6027 的时间里给出不同的宿,由三项约定组成的八部软件任意两部完全一致的比例只有 0.3479。
数据口径:书中参数为示意或注明出处;全部计算由书中程序生成;本书只分析体系的结构与概率,不做任何个人占断,也不是任何形式的建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(21 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.6027
| circle (du) | : 365.25 |
| mean width / widest / narrowest (du): 13.04 / 33 (Jing) / 2 (Zi) | |
| dwell in Jing / Zi under U (years) | : 2.530 / 0.153 |
| largest U - S gap (du) | : 20.69 |
| share of time in another mansion | : 0.6027 |
| share of time in another palace | : 0.2589 |
查看完整验算程序
# Chapter 3. p31: Ziqi, a purely calendrical point, under two readings
# Widths: Han equatorial lunar-mansion widths in Chinese degrees (du),
# 365.25 du to the circle, as transmitted for the Sifen calendar.
# Reading U: Ziqi moves uniformly, one circuit in 28 years.
# Reading S: Ziqi spends exactly one year in each mansion, whatever its
# width ("one mansion a year"). Both start at the first degree of Jiao.
# Sampled 20 times a day over one 28-year cycle.
import bisect
import math
NAMES = ("Jiao Kang Di Fang Xin Wei Ji Dou Niu Nu Xu Wei2 Shi Bi "
"Kui Lou Wei3 Mao Bi2 Zi Shen Jing Gui Liu Xing Zhang Yi Zhen")
NAMES = NAMES.split()
W = [12, 9, 15, 5, 5, 18, 11, 26.25, 8, 12, 10, 17, 16, 9,
16, 12, 14, 11, 16, 2, 9, 33, 4, 15, 7, 18, 18, 17]
CIRC = math.fsum(W)
EDGE = [0.0]
for w in W:
EDGE.append(EDGE[-1] + w)
def mansion(x):
return bisect.bisect_right(EDGE, x % CIRC) - 1
steps = 28 * 365 * 20
diff_m = diff_p = 0
worst = 0.0
for k in range(steps):
y = 28.0 * k / steps
u = CIRC * y / 28.0
i = int(y)
s = EDGE[i] + W[i] * (y - i)
d = abs((u - s + CIRC / 2) % CIRC - CIRC / 2)
worst = max(worst, d)
diff_m += mansion(u) != mansion(s)
diff_p += int(u // (CIRC / 12)) != int(s // (CIRC / 12))
print("circle (du) : {:.2f}".format(CIRC))
print("mean width / widest / narrowest (du): {:.2f} / {} ({}) / {} ({})"
.format(CIRC / 28, max(W), NAMES[W.index(max(W))], min(W),
NAMES[W.index(min(W))]))
print("dwell in Jing / Zi under U (years) : {:.3f} / {:.3f}".format(
28 * 33 / CIRC, 28 * 2 / CIRC))
print("largest U - S gap (du) : {:.2f}".format(worst))
print("share of time in another mansion : {:.4f}".format(diff_m / steps))
print("share of time in another palace : {:.4f}".format(diff_p / steps))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《七政四余黄道宿度摄动、四余暗曜交点轨道与洞微限度误差传播》第 3 章「紫气与四余约定格:一个纯历法虚点的可辨识性」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-155 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026155,
author = {Fan, Yafu},
title = {Seven Governors and Four Remainders: Ecliptic Lunar-Mansion Perturbations, Shadow-Node Orbits and Error Propagation in Dongwei Limits},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}