5D Library › Five-Node Cyclic Network Dynamics, Solar-Longitude Ephemeris and Multi-Scale Oscillator Perturbations · 中文
Chapter 1. Kepler’s Equation and the Equation of Time: Clock Time, Solar Time and the Dates of the Solar Terms
Two kinds of noon
Twelve o’clock on the clock and the moment the Sun stands highest do not coincide. There are two reasons. A standard time zone keeps the time of one meridian, and most places do not lie on it; and even on that meridian the true Sun runs fast and slow through the year. The second effect is called the equation of time, and it swings between about −14 and +16 minutes over the year. This chapter computes it from Kepler’s equation, then asks a discrete question: when a solar term begins near midnight, is it dated to the same day by the clock and by the local Sun?
Kepler’s equation and Newton’s method
Calculation
Kepler’s equation. The mean anomaly of Earth’s orbit grows uniformly with time, and the eccentric anomaly satisfies where is the eccentricity. The equation has no elementary closed-form solution. Newton’s method starts at and iterates roughly squaring the error at each step near the root (quadratic convergence) (Danby 1988).
Calculation
# Chapter 1. p01: Kepler's equation M = E - e sin E, solved by Newton's
# method. Newton: E <- E - (E - e sin E - M) / (1 - e cos E), started at E = M
# (or at pi for e > 0.8, the standard safe start). The program counts
# iterations to a residual below 1e-15 rad over 3,600 mean anomalies, for
# Earth's eccentricity and for larger ones, and reports the largest gap
# between E and M - the "equation of centre" in eccentric anomaly.
import math
def solve(m, e, tol=1e-15, cap=60):
x = math.pi if e > 0.8 else m
for k in range(1, cap + 1):
f = x - e * math.sin(x) - m
x -= f / (1 - e * math.cos(x))
if abs(x - e * math.sin(x) - m) < tol:
return x, k
return x, cap
if __name__ == "__main__":
grid = [2 * math.pi * i / 3600 for i in range(3600)]
print(" e max iterations mean iterations max |E - M| (deg)")
for e in (0.0167, 0.1, 0.3, 0.6, 0.9, 0.99):
its, gap = [], 0.0
for m in grid:
x, k = solve(m, e)
its.append(k)
gap = max(gap, abs(x - m))
print(" {:6.4f} {:3d} {:5.2f} {:8.4f}"
.format(e, max(its), sum(its) / len(its), math.degrees(gap)))
e = 0.0167
m = math.radians(60.0)
x = m
print("\nEarth, M = 60 deg, step by step:")
for k in range(4):
x -= (x - e * math.sin(x) - m) / (1 - e * math.cos(x))
print(" step {}: E = {:.15f} residual {:.1e}".format(
k + 1, x, abs(x - e * math.sin(x) - m)))
print("\nReading: for Earth's orbit Newton's method needs at most three")
print("steps to machine precision - the residual squares each step -")
print("and E never strays more than about one degree from M. The")
print("eccentricity is small, which is why the equation of time is a")
print("few minutes, not hours.")
# e max iterations mean iterations max |E - M| (deg)
# 0.0167 3 2.60 0.9568
# 0.1000 3 2.94 5.7296
# 0.3000 4 3.67 17.1887
# 0.6000 5 4.29 34.3775
# 0.9000 8 4.65 51.5662
# 0.9900 10 4.62 56.7228
#
# Earth, M = 60 deg, step by step:
# step 1: E = 1.061781955213338 residual 1.5e-06
# step 2: E = 1.061780400132823 residual 1.8e-14
# step 3: E = 1.061780400132805 residual 0.0e+00
# step 4: E = 1.061780400132805 residual 0.0e+00
#
# Reading: for Earth's orbit Newton's method needs at most three
# steps to machine precision - the residual squares each step -
# and E never strays more than about one degree from M. The
# eccentricity is small, which is why the equation of time is a
# few minutes, not hours.For Earth’s eccentricity of 0.0167, over 3,600 evenly spaced mean anomalies, Newton’s method reaches machine precision in at most three steps, 2.60 on average; never differs from by more than 0.9568 degrees. The step-by-step output shows the quadratic convergence: a residual of 1.5e-06 after one step, 1.8e-14 after two. Larger eccentricities need more steps — up to 10 at 0.99 — but still converge. Earth’s eccentricity is small, which is why the equation of time is a matter of minutes rather than hours.
Two sources of the equation of time
Calculation
From orbit to right ascension. From follows the true anomaly and the Sun’s ecliptic longitude ( the longitude of perigee), converted to right ascension with the obliquity : The mean Sun’s longitude is . The equation of time is at 4 minutes per degree (apparent minus mean solar time) (Meeus 1998; Hughes et al. 1989). Keeping only the eccentricity () gives the once-a-year part; keeping only the obliquity () gives the twice-a-year part.
Calculation
# Chapter 1. p02: The equation of time from Kepler's equation and the
# obliquity.
# Elements of the Sun's apparent orbit, d = days from 2000 Jan 1.5 TT
# (a low-precision set of the kind tabulated in astronomical almanacs):
# mean anomaly M = 357.5291 + 0.98560028 d (deg)
# perigee longitude w = 282.9404 + 4.70935e-5 d
# eccentricity e = 0.016709, obliquity eps = 23.4393 - 3.563e-7 d
# Mean longitude L = M + w. Kepler's equation gives E, then the true
# anomaly v and ecliptic longitude lam = v + w; right ascension
# alpha = atan2(cos eps sin lam, cos lam). Equation of time
# = L - alpha, at 4 minutes per degree (apparent minus mean solar time).
# Year 2027, noon UT each day. Parts: e only (eps = 0), eps only (e = 0).
import datetime
import math
def kepler(m, e):
x = m
for _ in range(8):
x -= (x - e * math.sin(x) - m) / (1 - e * math.cos(x))
return x
def eot(d, use_e=True, use_eps=True):
m = math.radians((357.5291 + 0.98560028 * d) % 360)
w = math.radians(282.9404 + 4.70935e-5 * d)
e = 0.016709 if use_e else 0.0
eps = math.radians(23.4393 - 3.563e-7 * d) if use_eps else 0.0
ea = kepler(m, e)
v = 2 * math.atan2(math.sqrt(1 + e) * math.sin(ea / 2),
math.sqrt(1 - e) * math.cos(ea / 2))
lam = v + w
alpha = math.atan2(math.cos(eps) * math.sin(lam), math.cos(lam))
diff = math.degrees(m + w - alpha)
diff = (diff + 180) % 360 - 180
return 4 * diff
if __name__ == "__main__":
base = datetime.date(2000, 1, 1)
days = [datetime.date(2027, 1, 1) + datetime.timedelta(i)
for i in range(365)]
rows = [(x, eot((x - base).days)) for x in days]
lo = min(rows, key=lambda r: r[1])
hi = max(rows, key=lambda r: r[1])
print("2027: minimum {:+.1f} min on {}, maximum {:+.1f} min on {}"
.format(lo[1], lo[0], hi[1], hi[0]))
print("\nlocal extremes and zero crossings:")
for (a, fa), (b, fb), (c, fc) in zip(rows, rows[1:], rows[2:]):
if (fb - fa) * (fc - fb) < 0:
print(" {} extreme {:+6.2f} min".format(b, fb))
if fa * fb < 0:
print(" {} crosses zero".format(b))
print("\n month total e only eps only (min, on the 1st)")
for mth in range(1, 13):
d = (datetime.date(2027, mth, 1) - base).days
print(" {:5d} {:+6.2f} {:+6.2f} {:+7.2f}".format(
mth, eot(d), eot(d, use_eps=False), eot(d, use_e=False)))
amp_e = max(abs(eot((x - base).days, use_eps=False)) for x in days)
amp_o = max(abs(eot((x - base).days, use_e=False)) for x in days)
print("\namplitudes: eccentricity part {:.2f} min, obliquity part"
" {:.2f} min".format(amp_e, amp_o))
print("\nReading: the total runs from about -14.2 to +16.4 minutes. It")
print("is the sum of a one-a-year wave from the elliptical orbit and a")
print("twice-a-year wave from the tilted axis; neither alone reaches")
print("the extremes, and the sum crosses zero four times.")
# 2027: minimum -14.2 min on 2027-02-11, maximum +16.4 min on 2027-11-03
#
# local extremes and zero crossings:
# 2027-02-11 extreme -14.20 min
# 2027-04-16 crosses zero
# 2027-05-14 extreme +3.64 min
# 2027-06-13 crosses zero
# 2027-07-26 extreme -6.57 min
# 2027-09-02 crosses zero
# 2027-11-03 extreme +16.45 min
# 2027-12-26 crosses zero
#
# month total e only eps only (min, on the 1st)
# 1 -3.45 +0.34 -3.82
# 2 -13.52 -3.67 -9.83
# 3 -12.36 -6.40 -6.37
# 4 -3.93 -7.65 +3.13
# 5 +2.86 -6.83 +9.57
# 6 +2.16 -4.17 +6.62
# 7 -3.87 -0.53 -3.29
# 8 -6.38 +3.35 -9.77
# 9 -0.08 +6.35 -6.02
# 10 +10.27 +7.63 +3.24
# 11 +16.42 +6.88 +9.67
# 12 +11.08 +4.28 +6.52
#
# amplitudes: eccentricity part 7.66 min, obliquity part 9.86 min
#
# Reading: the total runs from about -14.2 to +16.4 minutes. It
# is the sum of a one-a-year wave from the elliptical orbit and a
# twice-a-year wave from the tilted axis; neither alone reaches
# the extremes, and the sum crosses zero four times.In 2027 the equation of time reaches its minimum, −14.2 minutes, on 11 February and its maximum, +16.4 minutes, on 3 November, with secondary extremes of +3.64 on 14 May and −6.57 on 26 July, crossing zero four times. The eccentricity part has an amplitude of 7.66 minutes and the obliquity part 9.86; neither alone reaches the extremes of the total, which come from the two waves adding in phase in February and November.
The dates of the solar terms: a problem of discretisation
A solar term is defined by the Sun’s apparent ecliptic longitude: each time it reaches a multiple of 15 degrees, a new term begins. That is an instant, not a day; which day it is assigned to depends on which clock is used. The third program computes all 2,400 solar-term instants from 2001 to 2100 and dates each one by China Standard Time (UTC+8) and by local apparent solar time (UT + longitude/15 hours + the equation of time), counting how often the two dates differ.
Calculation
# Chapter 1. p03: Clock dates versus solar dates for the 24 solar terms.
# A solar term (jieqi) begins when the Sun's apparent ecliptic longitude
# reaches a multiple of 15 deg. Its civil date depends on which clock
# dates it. Instants for 2001-2100 come from the low-precision solar
# theory below (good to about 0.01 deg, i.e. about 15 minutes in time;
# the 69 s difference between TT and UT is ignored at that precision).
# Each instant is dated two ways: China Standard Time (UTC+8) and local
# apparent solar time (UT + longitude/15 h + equation of time). The
# share of the 2,400 instants whose two dates differ is reported.
import math
def sun_lon(jd):
t = (jd - 2451545.0) / 36525
l0 = 280.46646 + 36000.76983 * t + 0.0003032 * t * t
m = math.radians(357.52911 + 35999.05029 * t - 0.0001537 * t * t)
c = ((1.914602 - 0.004817 * t - 0.000014 * t * t) * math.sin(m)
+ (0.019993 - 0.000101 * t) * math.sin(2 * m)
+ 0.000289 * math.sin(3 * m))
om = math.radians(125.04 - 1934.136 * t)
return (l0 + c - 0.00569 - 0.00478 * math.sin(om)) % 360
def eot_min(jd):
t = (jd - 2451545.0) / 36525
l0 = math.radians(280.46646 + 36000.76983 * t)
e = 0.016708634
m = math.radians(357.52911 + 35999.05029 * t)
y = math.tan(math.radians(23.4393) / 2) ** 2
val = (y * math.sin(2 * l0) - 2 * e * math.sin(m)
+ 4 * e * y * math.sin(m) * math.cos(2 * l0)
- 0.5 * y * y * math.sin(4 * l0) - 1.25 * e * e * math.sin(2 * m))
return 4 * math.degrees(val)
def instants(y0=2001, y1=2100):
out = []
jd = 2451910.5 # 2001 Jan 1
end = jd + 365.2422 * (y1 - y0 + 1)
while jd < end:
a, b = sun_lon(jd), sun_lon(jd + 1)
k = math.floor(a / 15) + 1
target = (15 * k) % 360
if (b - target) % 360 < (b - a) % 360:
lo, hi = jd, jd + 1
for _ in range(50):
mid = (lo + hi) / 2
if (sun_lon(mid) - target) % 360 < 180:
hi = mid
else:
lo = mid
out.append((lo + hi) / 2)
jd += 1
return out
def day_of(jd_local):
return math.floor(jd_local + 0.5)
if __name__ == "__main__":
ins = instants()
print("solar-term instants found, 2001-2100: {}".format(len(ins)))
eq = min(ins, key=lambda j: abs(j - 2460389.6)) # March 2024
h = ((eq + 0.5) % 1) * 24
print("check: March equinox 2024 at {:02d}:{:02d} UT by this theory"
" (published: 03:06 UT)".format(int(h), int(round(h % 1 * 60))))
print("\n place longitude dates differ share")
for name, lon in (("zone meridian", 120.0), ("Beijing", 116.4),
("Chengdu", 104.1), ("Lhasa", 91.1),
("Urumqi", 87.6)):
diff = 0
for jd in ins:
cst = day_of(jd + 8 / 24)
lat = day_of(jd + lon / 360 + eot_min(jd) / 1440)
diff += cst != lat
print(" {:<13} {:7.1f}E {:6d} {:6.2%}".format(
name, lon, diff, diff / len(ins)))
near = sum(1 for jd in ins
if abs(((jd + 8 / 24 + 0.5) % 1) * 1440) < 15
or abs(((jd + 8 / 24 + 0.5) % 1) * 1440 - 1440) < 15)
print("\ninstants within 15 minutes of midnight (UTC+8): {} ({:.2%})"
.format(near, near / len(ins)))
print("\nReading: on the zone meridian only the equation of time")
print("separates the two clocks, and about one solar term in two")
print("hundred changes date; at Beijing about one in a hundred. In")
print("the far west of the zone the clock runs more than two hours")
print("ahead of the Sun and the share approaches one in ten.")
print("A few dozen instants sit so near midnight that this ephemeris")
print("cannot date them at all.")
# solar-term instants found, 2001-2100: 2400
# check: March equinox 2024 at 03:04 UT by this theory (published: 03:06 UT)
#
# place longitude dates differ share
# zone meridian 120.0E 13 0.54%
# Beijing 116.4E 26 1.08%
# Chengdu 104.1E 109 4.54%
# Lhasa 91.1E 198 8.25%
# Urumqi 87.6E 220 9.17%
#
# instants within 15 minutes of midnight (UTC+8): 56 (2.33%)
#
# Reading: on the zone meridian only the equation of time
# separates the two clocks, and about one solar term in two
# hundred changes date; at Beijing about one in a hundred. In
# the far west of the zone the clock runs more than two hours
# ahead of the Sun and the share approaches one in ten.
# A few dozen instants sit so near midnight that this ephemeris
# cannot date them at all.The program first checks itself: it puts the 2024 March equinox at 03:04 UT against a published 03:06, a two-minute difference, consistent with this low-precision solar theory’s accuracy of about 0.01 degrees (about 15 minutes). On the zone’s reference meridian (120 degrees east) the two clocks differ only by the equation of time, and 13 of the 2,400 terms (0.54 %) change date; at Beijing (116.4 degrees east) 26 (1.08 %). Further west the clock runs further ahead of the Sun: Chengdu 4.54 %, Lhasa 8.25 %, Urumqi 9.17 % — approaching one in ten.
Another 56 instants (2.33 %) fall within 15 minutes of midnight in UTC+8. At the ephemeris accuracy used here, the day of these terms cannot be decided; deciding it needs a more precise ephemeris, and Chapter 8 gives a pre-registered protocol for that check.
Note
What this chapter shows. “Which day a solar term falls on” is not an astronomical fact but an astronomical instant plus a timekeeping convention. Change the convention and about one term in ten changes its day. Any calculation that uses solar-term dates — a calendar, an agricultural table, a date lookup in a program — carries an implicit choice of time zone and longitude, and should state it.
Hypothesis · not established
The author’s hypothesis (not yet tested): for western China, the share of solar terms whose date in the usual published tables (dated in UTC+8) differs from the date by local apparent solar time agrees with the 8 % to 9 % of this chapter’s model to within one percentage point. What would show it wrong: recomputed with a high-precision ephemeris, the western share differs from 8 % to 9 % by more than one percentage point.
Summary
Kepler’s equation is solved to machine precision by three Newton steps. The once-a-year part from the orbit’s eccentricity (amplitude 7.66 minutes) and the twice-a-year part from the obliquity (9.86 minutes) add up to an equation of time running from −14.2 to +16.4 minutes. Solar terms are instants; their dates are conventions: in the west of the UTC+8 zone nearly one term in ten falls on a different day by the clock than by the local Sun, and about 2 % lie so close to midnight that a low-precision ephemeris cannot date them.
References
Fan, Y. (2026). Five-Node Cyclic Network Dynamics, Solar-Longitude Ephemeris and Multi-Scale Oscillator Perturbations: Rock-Paper-Scissors-Lizard-Spock Lotka-Volterra Graphs, Equation-of-Time Keplerian Mechanics and Jacobian Sensitivity Bounds [五节点循环网络动力学、黄经历表与多尺度振子扰动] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090168 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).