What does Seven Governors: Astronomy and Error conclude, in numbers, about “The Classics Examined: the Guolao xingzong, the Qintang zhijin ge and the Almagest”?
Answer: Chapter 7 reads the Guolao xingzong, the Qintang zhijin ge and Ptolemy's Almagest side by side and finds Ptolemy's longitude of Spica 1.264 degrees too small at its own epoch.
Scope of the numbers: Its parameters are illustrative or sourced; all calculations are generated by its programs; it analyses only the structure and probabilities of the system, makes no personal reading of any kind, and is not advice of any kind. Marked boxes separate published evidence, runnable Python calculations (21 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python only
| k | rules N | P(some rule fires) | charts per 30 cases of one rule |
| 1 | 20 | 0.8245 | 360 |
| 1 | 60 | 0.9946 | 360 |
| 1 | 200 | 1.0000 | 360 |
| 2 | 20 | 0.1301 | 4320 |
| 2 | 60 | 0.3417 | 4320 |
| 2 | 200 | 0.7519 | 4320 |
| 3 | 20 | 0.0115 | 51840 |
| 3 | 60 | 0.0341 | 51840 |
| 3 | 200 | 0.1093 | 51840 |
| Monte Carlo, k = 2, N = 60, 20000 charts: P(some rule fires) 0.4265 |
Show the full program
# Chapter 7. p72: how often a verse rule fires on a chart, by structure
# A verse rule is a conjunction of k placement conditions of the form
# "body X in palace Y" or "body X shares a palace with body Z", each of
# probability 1/12 on a chart with independent uniform palaces (a
# structural baseline, not a claim about any real chart). A verse book
# of N rules fires on a chart if any rule fires. Monte Carlo check with
# 11 bodies and random rules; fixed seed.
import random
rng = random.Random(20261112)
print("k rules N P(some rule fires) charts per 30 cases of one rule")
for k in (1, 2, 3):
for n in (20, 60, 200):
p1 = 12.0 ** -k
print("{} {:7d} {:18.4f} {:12.0f}".format(
k, n, 1 - (1 - p1) ** n, 30 / p1))
def make_rule(k):
conds = []
for _ in range(k):
x = rng.randrange(11)
if rng.random() < 0.5:
conds.append(("in", x, rng.randrange(12)))
else:
z = (x + 1 + rng.randrange(10)) % 11
conds.append(("with", x, z))
return conds
def fires(rule, chart):
for kind, x, y in rule:
if kind == "in" and chart[x] != y:
return False
if kind == "with" and chart[x] != chart[y]:
return False
return True
rules = [make_rule(2) for _ in range(60)]
charts = 20000
hit = 0
for _ in range(charts):
c = [rng.randrange(12) for _ in range(11)]
hit += any(fires(r, c) for r in rules)
print()
print("Monte Carlo, k = 2, N = 60, {} charts: P(some rule fires) {:.4f}"
.format(charts, hit / charts))Single source and citation
Fan, Y. (2026). Seven Governors and Four Remainders: Ecliptic Lunar-Mansion Perturbations, Shadow-Node Orbits and Error Propagation in Dongwei Limits (Version 1.0.0), Chapter 7: The Classics Examined: the Guolao xingzong, the Qintang zhijin ge and the Almagest. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 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}
}Other chapter answers in this book
- Chapter 1 · Rahu and Ketu: Mean Motion, True Motion and the Eclipse Year of the Lunar Nodes
- Chapter 2 · Yuebei: the Advance of the Lunar Apogee and the Price of a Rounded Period
- Chapter 3 · Ziqi and the Lattice of Conventions: Can a Purely Calendrical Point Be Identified?
- Chapter 4 · Precession and the Determinative Stars of the Twenty-Eight Mansions: the Zi–Shen Reversal and Mansion Widths that Stretch
- Chapter 5 · Palaces by Degree and Palaces by Mansion: the Disagreement Rate of Two Frames
- Chapter 6 · Dongwei Limits: Two Rules for the Ming Palace and the Propagation of Birth-Time Error
- Chapter 8 · Practice and Falsification: Chart Components, Pre-Registered Tests and the Conditions for Overturning