import mpmath as m
m.mp.dps = 150
d = 3 # any integer dimension at least 2
k = m.sqrt(m.pi)*m.gamma(m.mpf(d)/2)/m.gamma(m.mpf(d-1)/2)
def theta(t):
if t == 0: return m.mpf(0)
if t == 1: return m.pi/2 if d == 2 else m.pi
re = m.hyp2f1(1, 1-m.mpf(d)/2, m.mpf(1)/2, t*t)
im = k*t*((1-t)*(1+t))**(m.mpf(d-3)/2)
return m.atan2(im, re)
z0 = 1-m.quad(theta, [0, m.mpf(1)/2, m.mpf(9)/10, 1])/m.pi
print(m.nstr(z0, 100))Computed from the conservative phase integral with mpmath tanh-sinh quadrature at 150 and 200 decimal working digits and different interval subdivisions. The largest change between those computations was less than $8\times10^{-152}$. Every inexact entry is stored to 100 significant digits. The rod value is exact.
Independent checks use the direct distance integral in d'Eon and McCormick, equation (176), after an angular substitution and an analytic cancellation of its small-argument terms. That integral was evaluated at 170 working digits and differed from the 200-digit phase result by less than $10^{-171}$ for every entry. Closed forms in dimensions 1, 2, 4 and 6 and published numerical values provide controls. Separate angular quadratures test the zeroth and first H-function moments before the second-moment relation is tested in every dimension from 2 through 10. The finer angular quadrature gave errors less than $2\times10^{-8}$ in the moment controls and $6\times10^{-9}$ in the distance relation. These angular checks test normalization and the moment relation; they do not justify the stored 100 digits. The attached numerical evidence records the observed discrepancies. These computations have no rigorous quadrature error bounds.