What does Pythagorean Comma, Zhu Zaiyu and Beat Roughness conclude, in numbers, about “Zhu Zaiyu's Close Ratio: Digit-by-Digit Roots, a Twenty-Five-Digit Recomputation and the Marginal Value of Precision”?
Answer: Chapter 3 replays Zhu Zaiyu's three root extractions digit by digit and confirms that all twenty-five digits of the close ratio usually quoted, 1.059463094359295264561825, are correct, while an octave error below one cent needs only six digits.
Scope of the numbers: Its listeners, samples and copy are illustrative, and all calculations are generated by its programs; the book is not medical advice, claims no effect of any frequency, scale or instrument on body or mind, and is not purchasing advice. Marked boxes separate published evidence, runnable Python calculations (22 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 onlyprinted values that match the answer: 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
Show the full program
# 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()Single source and citation
Fan, Y. (2026). The Unclosed Circle of Pythagorean Tuning, Zhu Zaiyu's Root Approximation of Equal Temperament and the Beat Roughness of Just-Intonation Overtones (Version 1.0.0), Chapter 3: Zhu Zaiyu's Close Ratio: Digit-by-Digit Roots, a Twenty-Five-Digit Recomputation and the Marginal Value of Precision. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 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}
}Other chapter answers in this book
- Chapter 1 · Twelve Steps of Adding and Cutting a Third: the Exact Arithmetic of the Pythagorean Comma
- Chapter 2 · Jing Fang's Sixty Pipes and Qian Lezhi's Three Hundred and Sixty: Why Continued Fractions Favour 12, 41 and 53
- Chapter 4 · Three Ledgers for the Major Third: Just 5/4, Pythagorean 81/64 and Equal Temperament
- Chapter 5 · The Roughness Curve: the Plomp and Levelt Data and the Sethares Dissonance Model
- Chapter 6 · Beats and High-Register Roughness: the Same Mistuning Beats Low and Grates High
- Chapter 7 · The Sources Examined: the Diyuan Chapter of the Guanzi, Zhu Zaiyu's Lvlv jingyi and the Blacksmith Legend in Boethius
- Chapter 8 · Practice and Falsification: Fitting Marketing Copy with a Detector for Pseudo-Precise Tuning Claims