5D Library › Multimodal Calendrical Tensor Fusion, Modulo-90 Harmonic Dials and Cross-System Resonance Diagnostics · 中文
Chapter 2. Ziping Climate Balance: Warmth and Moisture as Vectors
Climate balance as a vector
“Climate balance” (tiao hou) in Ziping chooses, according to the cold, warmth, dryness and wetness of the birth month, the element that brings the day master into balance: a winter month is cold, so fire comes first; a summer month is hot, so water. The received Qiongtong baojian discusses each day stem month by month (Anonymous, n.d.). This chapter writes the idea as the simplest geometric model.
Each month branch (zi = 0, hai = 11) gets a two-dimensional climate vector (warmth, moisture): warmth , coldest at zi and hottest at wu; moisture , wettest at chou and driest at wei. Each day stem has a fixed vector too. A chart’s climate is the weighted sum, 0.7 for the month branch and 0.3 for the day stem (the 70/30 weighting of the author’s outline): The balancing element is the one pointing most against , the one with the smallest dot product with .
The table of 120 cells
Calculation
# Chapter 2. [p03] Ziping climate balance as two-dimensional vectors.
# Each month branch (zi = 0 .. hai = 11) gets a climate vector
# (warmth, moisture): warmth = -cos(2 pi k / 12) (coldest at zi, hottest
# at wu); moisture = cos(2 pi (k - 1) / 12) (wettest at chou, driest at
# wei). Each day stem gets a fixed vector (below). The chart climate is
# 0.7 x branch + 0.3 x stem (the 70/30 weighting). The corrective
# element is the one whose vector points most against the chart climate
# (largest negative dot product). Elements: mu wood, huo fire, tu
# earth, jin metal, shui water. Over the 10 x 12 = 120 day-stem by
# month cells: the corrective element in cold and hot months.
import math
STEMS = ("jia", "yi", "bing", "ding", "wu", "ji", "geng", "xin", "ren",
"gui")
STEM_V = ((0.2, 0.3), (0.1, 0.4), (0.9, -0.3), (0.7, -0.2), (0.3, -0.6),
(0.0, 0.5), (-0.3, -0.4), (-0.4, -0.2), (-0.6, 0.7), (-0.5, 0.8))
ELEM = {"mu": (0.2, 0.4), "huo": (1.0, -0.4), "tu": (0.1, -0.2),
"jin": (-0.4, -0.3), "shui": (-0.7, 0.8)}
BRANCH = ("zi", "chou", "yin", "mao", "chen", "si", "wu", "wei", "shen",
"you", "xu", "hai")
def branch_v(k):
return (-math.cos(2 * math.pi * k / 12),
math.cos(2 * math.pi * (k - 1) / 12))
def climate(s, k, w=0.7):
b = branch_v(k)
return tuple(w * b[i] + (1 - w) * STEM_V[s][i] for i in range(2))
def corrective(v):
return min(ELEM, key=lambda e: ELEM[e][0] * v[0] + ELEM[e][1] * v[1])
if __name__ == "__main__":
table = {(s, k): corrective(climate(s, k)) for s in range(10)
for k in range(12)}
print(" corrective element by month branch (day stems jia .. gui;")
print(" M mu, H huo, T tu, J jin, S shui)")
for k in range(12):
row = [{"mu": "M", "huo": "H", "tu": "T", "jin": "J",
"shui": "S"}[table[s, k]] for s in range(10)]
print(" {:5s} {}".format(BRANCH[k], " ".join(row)))
cold = [k for k in (11, 0, 1)]
hot = [k for k in (5, 6, 7)]
fire = sum(table[s, k] == "huo" for s in range(10) for k in cold)
water = sum(table[s, k] == "shui" for s in range(10) for k in hot)
print(" winter months (hai, zi, chou): huo in {} of 30 cells".format(
fire))
print(" summer months (si, wu, wei): shui in {} of 30 cells".format(
water))
count = {e: sum(v == e for v in table.values()) for e in ELEM}
print(" cells per element: " + " ".join(
"{} {}".format(e, n) for e, n in count.items()))
print("\nReading: with any vectors of this shape the familiar rule")
print("follows from geometry: huo against winter cold, shui against")
print("summer heat. The interest lies in the spring and autumn rows,")
print("where the answer depends on the weights.")
# corrective element by month branch (day stems jia .. gui;
# M mu, H huo, T tu, J jin, S shui)
# zi H H H H H H H H H H
# chou H H H H H H H H H H
# yin H H H H H H H H H H
# mao J H J J J H H H H H
# chen S J S S S J S S J J
# si S S S S S S S S S S
# wu S S S S S S S S S S
# wei S S S S S S S S S S
# shen S S S S S S S S S S
# you S S S S S S S S H H
# xu H H M H H H H H H H
# hai H H H H H H H H H H
# winter months (hai, zi, chou): huo in 30 of 30 cells
# summer months (si, wu, wei): shui in 30 of 30 cells
# cells per element: mu 1 huo 57 tu 0 jin 8 shui 54
#
# Reading: with any vectors of this shape the familiar rule
# follows from geometry: huo against winter cold, shui against
# summer heat. The interest lies in the spring and autumn rows,
# where the answer depends on the weights.All 30 cells of the three winter months (hai, zi, chou) take fire, and all 30 of the three summer months (si, wu, wei) take water. That is the familiar rule “fire in winter, water in summer”, but in this model it is geometry, not experience: as long as the month vectors point to “cold” in winter and to “hot” in summer, and fire and water point to “hot” and “cold”, the conclusion follows. Of the 120 cells fire takes 57, water 54, metal 8, wood 1 and earth 0. The cells that need judgement are in spring and autumn: in the mao, chen, you and xu rows the day stem begins to matter.
70/30 is a convention, not a constant
Calculation
# Chapter 2. [p04] How much of the climate table is set by the 70/30
# weighting? The model of p03 (same vectors) is recomputed with branch
# weights w = 1.0, 0.8, 0.6, 0.5 and 0.4 and compared cell by cell with
# w = 0.7. Also the tension |climate| (length of the chart vector):
# its mean and the share of cells below 0.3 ("already balanced").
import math
STEM_V = ((0.2, 0.3), (0.1, 0.4), (0.9, -0.3), (0.7, -0.2), (0.3, -0.6),
(0.0, 0.5), (-0.3, -0.4), (-0.4, -0.2), (-0.6, 0.7), (-0.5, 0.8))
ELEM = {"mu": (0.2, 0.4), "huo": (1.0, -0.4), "tu": (0.1, -0.2),
"jin": (-0.4, -0.3), "shui": (-0.7, 0.8)}
def climate(s, k, w):
b = (-math.cos(2 * math.pi * k / 12),
math.cos(2 * math.pi * (k - 1) / 12))
return tuple(w * b[i] + (1 - w) * STEM_V[s][i] for i in range(2))
def table(w):
out = {}
for s in range(10):
for k in range(12):
v = climate(s, k, w)
out[s, k] = (min(ELEM, key=lambda e: ELEM[e][0] * v[0]
+ ELEM[e][1] * v[1]), math.hypot(*v))
return out
if __name__ == "__main__":
base = table(0.7)
print(" w cells changed vs 0.7 mean tension share < 0.3")
for w in (1.0, 0.8, 0.7, 0.6, 0.5, 0.4):
t = table(w)
ch = sum(t[c][0] != base[c][0] for c in t) / 120
mt = sum(x[1] for x in t.values()) / 120
low = sum(x[1] < 0.3 for x in t.values()) / 120
print(" {:3.1f} {:22.4f} {:14.3f} {:12.4f}".format(w, ch, mt, low))
print("\nReading: between 0.6 and 0.8 only a few spring and autumn")
print("cells change; at equal weights the day stem starts to decide.")
print("The weighting is a convention to state, not a constant.")
# w cells changed vs 0.7 mean tension share < 0.3
# 1.0 0.0917 0.941 0.0000
# 0.8 0.0417 0.759 0.0417
# 0.7 0.0000 0.674 0.1000
# 0.6 0.0500 0.599 0.1500
# 0.5 0.1333 0.537 0.2167
# 0.4 0.2500 0.505 0.2583
#
# Reading: between 0.6 and 0.8 only a few spring and autumn
# cells change; at equal weights the day stem starts to decide.
# The weighting is a convention to state, not a constant.Changing the month weight from 0.7 to 0.6 changes the balancing element in 0.0500 of cells; to 0.8, in 0.0417; to 0.5, in 0.1333; to 0.4, in 0.2500. A chart’s “tension” (the length of its climate vector) also falls with the weight: the smaller the month weight, the more the day stem can offset the month, and the cells that look “already balanced” (length below 0.3) grow from 0.1000 to 0.2583. Whether a chart “needs balancing” at all, in other words, depends on the weighting convention.
Hypothesis · not established
The author’s interpretation (not yet tested): the empirical part of Ziping climate balance lies in spring and autumn and in the interplay with the day stem; the winter and summer conclusions are fixed by vector geometry whatever the parameters. What would show this wrong: if the element chosen first in each of the 120 sections of the Qiongtong baojian is coded one by one and compared with this chapter’s table, and many winter and summer cells do not take fire or water (more than three in ten, for example), the received text’s climate balance is not a geometry organised around cold and heat.
Summary
Written as two-dimensional vectors, “fire in winter, water in summer” follows directly from geometry; of the 120 cells, those that depend on convention lie in spring and autumn. The 70/30 weighting of month branch and day stem is a convention that must be stated: 0.6 or 0.8 changes about one cell in twenty, equal weights change 0.1333.
References
Fan, Y. (2026). Multimodal Calendrical Tensor Fusion, Modulo-90 Harmonic Dials and Cross-System Resonance Diagnostics: Climate-Balance Vectors, Flying-Transformation Matrices and Solar-Arc Midpoint Trees [多模态历法张量融合、模九十谐波拨盘与跨系统共振诊断] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090189 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).