关于「朱载堉的密率:逐位开方、二十五位复算与精度的边际价值」,《三分损益、朱载堉密率与拍频粗糙度》给出的定量结论是什么?
结论:第三章逐位重演朱载堉的三次开方,确认通行文献所载密率 1.059463094359295264561825 的二十五位全部正确,而让八度误差小于一音分只需六位数字。
数据口径:书中的听者、样本与文案均为示意,全部计算由书中程序生成;本书不是医疗建议,不宣称任何频率、音阶或乐器有身心功效,也不构成购买建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(22 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 1.059463094359295264561825
step pipe (doubled) value, 25 digits, truncated 1 ruibin 1.414213562373095048801688 2 nanlv 1.189207115002721066717499 3 yingzhong 1.059463094359295264561825 decimal check at 50 digits: 1.414213562373095048801688 agrees to 25 digits 1.189207115002721066717499 agrees to 25 digits 1.059463094359295264561825 agrees to 25 digits value usually quoted for Zhu: 1.059463094359295264561825 identical to step 3: True digits found per root: 25, 25, 25
查看完整验算程序
# Chapter 3. p31: Zhu Zaiyu's three root extractions, digit by digit.
# Model (the procedure as usually reconstructed from Lvlv jingyi):
# with the huangzhong pipe 1 chi, (1) the hypotenuse of a right
# triangle with legs 1 and 1 is the doubled ruibin, sqrt 2; (2) the
# square root of that is the doubled nanlv, 2^(1/4); (3) the cube root
# of that is the doubled yingzhong, 2^(1/12). Each root is taken one
# digit at a time on integers, as on counting rods or an abacus, and
# truncated to 25 significant digits; decimal at 50 digits checks it.
from decimal import Decimal, getcontext
getcontext().prec = 50
D = 24 # digits after the point
def root_digits(n_scaled, k):
# largest integer r with r^k <= n_scaled, found digit by digit
r, digits = 0, 0
top = 1
while top ** k <= n_scaled:
top *= 10
place = top // 10
while place:
d = 9
while (r + d * place) ** k > n_scaled:
d -= 1
r += d * place
digits += 1
place //= 10
return r, digits
def show(r):
s = str(r)
return s[0] + "." + s[1:]
def main():
one = 10 ** D
s1, n1 = root_digits(2 * one * one, 2)
s2, n2 = root_digits(s1 * one, 2)
s3, n3 = root_digits(s2 * one * one, 3)
ref = [Decimal(2).sqrt(), Decimal(2).sqrt().sqrt(),
Decimal(2) ** (Decimal(1) / 12)]
print("step pipe (doubled) value, 25 digits, truncated")
for k, (lab, v) in enumerate((("ruibin", s1), ("nanlv", s2),
("yingzhong", s3))):
print("{} {:<14} {}".format(k + 1, lab, show(v)))
print("decimal check at 50 digits:")
for v, x in zip((s1, s2, s3), ref):
t = str(x)[:26]
same = 0
for a, b in zip(show(v), t):
if a != b:
break
same += a.isdigit()
print(" {} agrees to {} digits".format(t, same))
zhu = "1.059463094359295264561825"
print("value usually quoted for Zhu: {}".format(zhu))
print("identical to step 3: {}".format(zhu == show(s3)))
print("digits found per root: {}, {}, {}".format(n1, n2, n3))
main()唯一数据源与引用
范雅福(Fan, Y.). (2026). 《三分损益律旋宫不归、朱载堉十二平均律开方逼近与纯律泛音拍频粗糙度》第 3 章「朱载堉的密率:逐位开方、二十五位复算与精度的边际价值」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-159 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026159,
author = {Fan, Yafu},
title = {The Unclosed Circle of Pythagorean Tuning, Zhu Zaiyu's Root Approximation of Equal Temperament and the Beat Roughness of Just-Intonation Overtones},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}