import numberdb.sage as numberdb
from sage.rings.real_arb import RealBallField
from sage.rings.rational_field import QQ
N = 10
R = RealBallField(numberdb.bits(100, losing=256))
C = (2*R.pi()).log() - R.euler_constant()
def V(p, q):
return sum((R(QQ((m*p) % q)/q) *
(R.pi()*R(QQ(m)/q)).cot()
for m in range(1, q)), R(0))
def A(r):
p, q = int(r.numerator()), int(r.denominator())
x = R(r)
return ((1-x)*x.log()+(1+x)*C)/2 - R.pi()*(V(p,q)+V(q,p))/(2*q)
b = [(R(n).log()+1-R.euler_constant())/n for n in range(1,N+1)]
G = [[A(QQ(j)/k)/j for k in range(1,N+1)] for j in range(1,N+1)]
M = [row+[v] for row,v in zip(G,b)]
for k in range(N):
assert M[k][k] > 0
for i in range(k+1,N):
f = M[i][k]/M[k][k]
for j in range(k+1,N+1):
M[i][j] -= f*M[k][j]
x = [R(0) for i in range(N)]
for i in range(N-1,-1,-1):
x[i] = (M[i][N]-sum((M[i][j]*x[j] for j in range(i+1,N)),R(0)))/M[i][i]
d2 = 1-sum((b[i]*x[i] for i in range(N)),R(0))
print(d2)
Computed using Arb real balls at 589 working bits. The Gram kernel is evaluated from finite Vasyunin sums with exact rational arguments. Interval $LDL^T$ elimination encloses each minimum, and every pivot is strictly positive. The smallest reported accuracy is 537 bits and the largest radius is less than $1.60\times10^{-164}$, sufficient for the 100 significant digits stored. No rounded companion values are used as inputs.
An independent 720-bit calculation evaluates all 465 symmetric Gram entries by integrating the piecewise quadratic fractional-part product against the trigamma kernel. It integrates 16 terms analytically and bounds the omitted tail after a 126-term expansion. Independent Gaussian elimination agrees on all 30 minima and all 465 coefficients across the nested spaces; its largest distance radius is less than $3.67\times10^{-136}$. Known-answer and deliberately perturbed controls precede the comparisons. Positive minima, strict decreases through index 30, normal-equation residuals, quadratic norms, and Schur-complement decreases are checked. The generator, independent checker, derivations and numerical evidence are attached.