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

krules NP(some rule fires)charts per 30 cases of one rule
1200.8245360
1600.9946360
12001.0000360
2200.13014320
2600.34174320
22000.75194320
3200.011551840
3600.034151840
32000.109351840
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