5D Library › 古典卜卦尊贵度积分、恒星二十七宿岁差与维姆肖塔里运限链 · English
第一章 先天尊贵度:黄经上的阶梯函数
五种尊贵与三种无力
古典占星把一颗行星在黄道上的「先天」状态分成五级尊贵:庙(行星守护的星座)、旺(擢升的星座)、三分(同元素三个星座的白天或夜间主星)、界(每个星座分成五段不等长的界,各归一颗行星)、面(每个星座三段,各 10 度);以及三种无力:陷(庙的对宫)、落(旺的对宫)、游走(没有任何一级尊贵)。威廉·莉莉在 1647 年的《基督教占星学》中给出计分:庙 5、旺 4、三分 3、界 2、面 1,陷 −5、落 −4、游走 −5 (Lilly 1647)。
本书的程序按以下约定实现:庙、旺按星座;三分按莉莉的表(火象日太阳夜木星,土象日金星夜月亮,风象日土星夜水星,水象日夜皆为火星);界用托勒密《四书》所载的「埃及界」(Ptolemy 1940);面按迦勒底次序从白羊座 0 度的火星排起。程序中的星座以 0 到 11 编号,从白羊座起。
推导
# Chapter 1. p01: Essential dignities as step functions of longitude.
# Signs 0..11 from Aries. Domiciles, exaltations (by sign), triplicity
# rulers as in Lilly (fire Sun/Jupiter, earth Venus/Moon, air Saturn/
# Mercury, water Mars by day and night), the Egyptian terms (five unequal
# bounds per sign) and the faces (decans, Chaldean order from Mars).
# Points (Lilly 1647): domicile 5, exaltation 4, triplicity 3, term 2,
# face 1; detriment -5, fall -4; peregrine (no positive dignity) -5.
PL = ("Sun", "Moon", "Mercury", "Venus", "Mars", "Jupiter", "Saturn")
DOM = {"Sun": (4,), "Moon": (3,), "Mercury": (2, 5), "Venus": (1, 6),
"Mars": (0, 7), "Jupiter": (8, 11), "Saturn": (9, 10)}
EXALT = {"Sun": 0, "Moon": 1, "Mercury": 5, "Venus": 11, "Mars": 9,
"Jupiter": 3, "Saturn": 6}
TRIP = {0: ("Sun", "Jupiter"), 1: ("Venus", "Moon"),
2: ("Saturn", "Mercury"), 3: ("Mars", "Mars")}
J, V, Me, Ma, S = "Jupiter", "Venus", "Mercury", "Mars", "Saturn"
TERMS = (((J, 6), (V, 6), (Me, 8), (Ma, 5), (S, 5)),
((V, 8), (Me, 6), (J, 8), (S, 5), (Ma, 3)),
((Me, 6), (J, 6), (V, 5), (Ma, 7), (S, 6)),
((Ma, 7), (V, 6), (Me, 6), (J, 7), (S, 4)),
((J, 6), (V, 5), (S, 7), (Me, 6), (Ma, 6)),
((Me, 7), (V, 10), (J, 4), (Ma, 7), (S, 2)),
((S, 6), (Me, 8), (J, 7), (V, 7), (Ma, 2)),
((Ma, 7), (V, 4), (Me, 8), (J, 5), (S, 6)),
((J, 12), (V, 5), (Me, 4), (S, 5), (Ma, 4)),
((Me, 7), (J, 7), (V, 8), (S, 4), (Ma, 4)),
((Me, 7), (V, 6), (J, 7), (Ma, 5), (S, 5)),
((V, 12), (J, 4), (Me, 3), (Ma, 9), (S, 2)))
CHALDEAN = ("Mars", "Sun", "Venus", "Mercury", "Moon", "Saturn", "Jupiter")
def term_ruler(lon):
sign, deg = int(lon // 30) % 12, lon % 30
for p, w in TERMS[sign]:
if deg < w:
return p
deg -= w
def face_ruler(lon):
return CHALDEAN[int(lon // 10) % 7]
def score(planet, lon, day=True, double=True):
sign = int(lon // 30) % 12
pos = 0
pos += 5 * (sign in DOM[planet])
pos += 4 * (sign == EXALT[planet])
pos += 3 * (TRIP[sign % 4][0 if day else 1] == planet)
pos += 2 * (term_ruler(lon) == planet)
pos += 1 * (face_ruler(lon) == planet)
neg = 5 * ((sign + 6) % 12 in DOM[planet])
neg += 4 * ((sign + 6) % 12 == EXALT[planet])
if pos == 0 and (double or neg == 0):
neg += 5
return pos - neg
if __name__ == "__main__":
widths = [w for row in TERMS for _, w in row]
print(" every sign's terms sum to 30: {}".format(
all(sum(w for _, w in row) == 30 for row in TERMS)))
print(" term widths range from {} to {} degrees".format(
min(widths), max(widths)))
tot = {p: sum(w for row in TERMS for q, w in row if q == p)
for p in (S, J, Ma, V, Me)}
print(" degrees of terms per planet: " + ", ".join(
"{} {}".format(p, d) for p, d in list(tot.items())[:3]))
print(" " + ", ".join(
"{} {}".format(p, d) for p, d in list(tot.items())[3:]))
print(" total {} degrees".format(sum(tot.values())))
print(" faces: 36 decans, Chaldean order from Mars at 0 Aries;"
" last = {}".format(face_ruler(355)))
for p, lon in (("Sun", 15.0), ("Venus", 355.0), ("Saturn", 190.0),
("Mars", 185.0), ("Moon", 222.0)):
print(" {:7s} at {:5.1f} deg: day {:3d}, night {:3d}".format(
p, lon, score(p, lon, True), score(p, lon, False)))
# every sign's terms sum to 30: True
# term widths range from 2 to 12 degrees
# degrees of terms per planet: Saturn 57, Jupiter 79, Mars 66
# Venus 82, Mercury 76
# total 360 degrees
# faces: 36 decans, Chaldean order from Mars at 0 Aries; last = Mars
# Sun at 15.0 deg: day 8, night 5
# Venus at 355.0 deg: day 4, night 4
# Saturn at 190.0 deg: day 8, night 5
# Mars at 185.0 deg: day -10, night -10
# Moon at 222.0 deg: day -9, night -9一个不规则的阶梯函数
程序首先检查表本身:每个星座的五个界之和都是 30 度;界宽从 2 度到 12 度不等,而不是常说的四到八度;把各行星的界加总,土星 57 度、木星 79 度、火星 66 度、金星 82 度、水星 76 度,合计 360 度。
有了这些表,一颗行星的先天得分就是黄经 的阶梯函数 ,在星座、界与面的边界处跳变。例如太阳在白羊座 15 度,白天得 8 分(旺 4、三分 3、面 1),夜间得 5 分;火星在天秤座 5 度,陷 −5,又没有任何尊贵,再记游走 −5,共 −10。
期望得分并不相等
若行星的黄经在长时间里均匀分布,期望得分就是 。真实的行星并不均匀:火星在远日点附近慢,水星与金星总在太阳附近。程序用一个低精度星历(喷气推进实验室的近似开普勒根数加月亮的主要周期项)比较两者 (Standish, n.d.; Meeus 1998),并先用几个公开的天象检验它:2000 年 1 月 6 日新月时月日黄经差 0.04 度,2020 年 10 月 13 日火星冲日时火日相差 180.01 度,2020 年 12 月 21 日木土大合时相差 0.05 度。
推导
# Chapter 1. p02: A low-precision ephemeris with daily motions.
# Planets: JPL approximate Keplerian elements, valid 1800-2050 (Standish),
# heliocentric J2000 ecliptic, made geocentric by subtracting the
# Earth-Moon barycentre, plus general precession to the equinox of date.
# Moon: the six largest terms of its longitude; node: mean node.
# Daily motion by a central difference of one day. Then: where do the
# planets actually spend their time over 1900-2049, and what does that do
# to the expected essential score of p01 (uniform longitude vs real sky)?
import importlib.util
from math import sin, cos, atan2, radians, degrees, sqrt
EL = { # a, e, I, L, long. peri, node; then rates per Julian century
"Mercury": (0.38709927, 0.20563593, 7.00497902, 252.25032350,
77.45779628, 48.33076593, 0.00000037, 0.00001906,
-0.00594749, 149472.67411175, 0.16047689, -0.12534081),
"Venus": (0.72333566, 0.00677672, 3.39467605, 181.97909950,
131.60246718, 76.67984255, 0.00000390, -0.00004107,
-0.00078890, 58517.81538729, 0.00268329, -0.27769418),
"EMB": (1.00000261, 0.01671123, -0.00001531, 100.46457166,
102.93768193, 0.0, 0.00000562, -0.00004392, -0.01294668,
35999.37244981, 0.32327364, 0.0),
"Mars": (1.52371034, 0.09339410, 1.84969142, -4.55343205,
-23.94362959, 49.55953891, 0.00001847, 0.00007882,
-0.00813131, 19140.30268499, 0.44441088, -0.29257343),
"Jupiter": (5.20288700, 0.04838624, 1.30439695, 34.39644051,
14.72847983, 100.47390909, -0.00011607, -0.00013253,
-0.00183714, 3034.74612775, 0.21252668, 0.20469106),
"Saturn": (9.53667594, 0.05386179, 2.48599187, 49.95424423,
92.59887831, 113.66242448, -0.00125060, -0.00050991,
0.00193609, 1222.49362201, -0.41897216, -0.28867794),
"Uranus": (19.18916464, 0.04725744, 0.77263783, 313.23810451,
170.95427630, 74.01692503, -0.00196176, -0.00004397,
-0.00242939, 428.48202785, 0.40805281, 0.04240589),
"Neptune": (30.06992276, 0.00859048, 1.77004347, -55.12002969,
44.96476227, 131.78422574, 0.00026291, 0.00005105,
0.00035372, 218.45945325, -0.32241464, -0.00508664),
"Pluto": (39.48211675, 0.24882730, 17.14001206, 238.92903833,
224.06891629, 110.30393684, -0.00031596, 0.00005170,
0.00004818, 145.20780515, -0.04062942, -0.01183482)}
def helio(name, T):
v = EL[name]
a, e, I, L, wb, Om = (v[i] + v[i + 6] * T for i in range(6))
M = radians((L - wb + 180) % 360 - 180)
E = M + e * sin(M)
for _ in range(8):
E -= (E - e * sin(E) - M) / (1 - e * cos(E))
xp, yp = a * (cos(E) - e), a * sqrt(1 - e * e) * sin(E)
w, Om, I = radians(wb - Om), radians(Om), radians(I)
x = ((cos(w) * cos(Om) - sin(w) * sin(Om) * cos(I)) * xp
+ (-sin(w) * cos(Om) - cos(w) * sin(Om) * cos(I)) * yp)
y = ((cos(w) * sin(Om) + sin(w) * cos(Om) * cos(I)) * xp
+ (-sin(w) * sin(Om) + cos(w) * cos(Om) * cos(I)) * yp)
return x, y
def moon(d):
Lp, D = 218.3164477 + 13.17639648 * d, 297.8501921 + 12.19074912 * d
M, Mp = 357.5291092 + 0.98560028 * d, 134.9633964 + 13.06499295 * d
F = 93.2720950 + 13.22935024 * d
r = radians
return (Lp + 6.289 * sin(r(Mp)) + 1.274 * sin(r(2 * D - Mp))
+ 0.658 * sin(r(2 * D)) + 0.214 * sin(r(2 * Mp))
- 0.186 * sin(r(M)) - 0.114 * sin(r(2 * F))) % 360
def positions(jd):
d = jd - 2451545.0
T = d / 36525
prec = 1.396971 * T
ex, ey = helio("EMB", T)
out = {"Sun": (degrees(atan2(-ey, -ex)) + prec) % 360}
out["Earth"] = (out["Sun"] + 180) % 360
out["Moon"] = moon(d)
out["NNode"] = (125.0445479 - 0.0529537648 * d) % 360
out["SNode"] = (out["NNode"] + 180) % 360
for p in ("Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus",
"Neptune", "Pluto"):
x, y = helio(p, T)
out[p] = (degrees(atan2(y - ey, x - ex)) + prec) % 360
return out
def speed(jd, body):
a, b = positions(jd - 0.5)[body], positions(jd + 0.5)[body]
return (b - a + 180) % 360 - 180
def load(name):
spec = importlib.util.spec_from_file_location(name, name + ".py")
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
return m
if __name__ == "__main__":
def rel(a, b):
return (a - b + 180) % 360 - 180
P = positions
nm, op, gc = P(2451550.26), P(2459136.47), P(2459205.26)
print(" checks: Moon - Sun at new moon 2000-01-06 {:.2f};"
" Mars - Sun at".format(rel(nm["Moon"], nm["Sun"])))
print(" opposition 2020-10-13 {:.2f}; Jupiter - Saturn 2020-12-21"
" {:.2f}".format(rel(op["Mars"], op["Sun"]) % 360,
abs(rel(gc["Jupiter"], gc["Saturn"]))))
dig = load("p01_dignity_tables")
N = 40000
jds = [2415020.5 + (2469807.5 - 2415020.5) * (i + 0.5) / N
for i in range(N)]
pos = [positions(jd) for jd in jds]
print(" expected essential score, uniform longitude vs sky 1900-2049")
print(" planet uniform day night sky day night")
grid = [i / 10 + 0.05 for i in range(3600)]
for p in dig.PL:
u = [sum(dig.score(p, x, d) for x in grid) / 3600
for d in (True, False)]
s = [sum(dig.score(p, q[p], d) for q in pos) / N
for d in (True, False)]
print(" {:8s} {:10.3f} {:6.3f} {:8.3f} {:6.3f}".format(
p, u[0], u[1], s[0], s[1]))
# checks: Moon - Sun at new moon 2000-01-06 0.04; Mars - Sun at
# opposition 2020-10-13 180.01; Jupiter - Saturn 2020-12-21 0.05
# expected essential score, uniform longitude vs sky 1900-2049
# planet uniform day night sky day night
# Sun -2.306 -3.472 -2.279 -3.435
# Moon -3.611 -2.028 -3.617 -2.036
# Mercury -2.286 -1.050 -2.368 -1.106
# Venus -0.586 -1.878 -0.809 -2.093
# Mars -1.008 -1.008 -1.228 -1.228
# Jupiter -1.950 -0.672 -1.877 -0.627
# Saturn -1.211 -2.294 -0.907 -1.940在均匀黄经下,期望得分在白天从金星的 −0.586 到月亮的 −3.611,夜间从木星的 −0.672 到太阳的 −3.472,全部为负:游走的 −5 分覆盖了大部分黄道。太阳与月亮只有一个庙宫,又不分配界,结构上处于劣势;火星因为水象三分日夜皆归火星,白天与夜间的期望相同(−1.008)。用 1900 到 2049 年的真实位置计算,数字略有移动:金星白天降到 −0.809,土星白天升到 −0.907,火星降到 −1.228;排序大体不变。
证据
结论:先天尊贵度的计分对行星不是中性的。 即使不看任何星盘,一颗随机黄经上的金星的期望得分也比月亮高约三分。比较两颗行星的「强弱」时,这一结构性差距应当先被扣除。
小结
先天尊贵度是黄经上的阶梯函数;埃及界宽 2 到 12 度,各行星的界合计 57、79、66、82、76 度。各行星的期望先天得分并不相等,且在均匀黄经与真实天空下都全部为负;金星最高,月亮与太阳最低。
参考文献
Fan, Y. (2026). Horary Dignity Scoring, Sidereal Nakshatra Precession and Vimshottari Dasha Chains: Reception Matrix Algebra, Ayanamsha Drift Kinetics and Non-Uniform Planetary Period Partitions [古典卜卦尊贵度积分、恒星二十七宿岁差与维姆肖塔里运限链] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090195 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).