# Exact probabilities for n uniform area points in a triangle or parallelogram.
import numberdb.sage as numberdb
from sage.rings.rational_field import QQ
from math import comb, factorial
n = 4
p_triangle = QQ(2**n * factorial(3*n-3)) / QQ(factorial(n-1)**3 * factorial(2*n))
p_parallelogram = (QQ(comb(2*n-2, n-1)) / QQ(factorial(n)))**2
print(p_triangle, p_parallelogram)
# Sylvester's probability for four uniform area points in any ellipse.
import numberdb.sage as numberdb
from sage.rings.real_arb import RealBallField
R = RealBallField(413)
print(1 - R(35)/(12*R.pi()**2))
Thirteen entries are exact Sage rationals. The five nontrivial ellipse probabilities use Arb ball arithmetic with 80 guard bits beyond 100 significant digits. Their maximum measured ball radius is less than $2\times10^{-123}$, and the least relative accuracy exceeds 120 decimal digits. Their exact expressions are transcribed from equation (7) of [4], which gives the complementary probabilities $1-p_D(n)$ for a disk $D$. The parallelogram formula also appears in the author's abstract [5].
The rational recurrence computations agree with independent factorial evaluations throughout the range. For parallelograms, direct enumeration of Dyck paths gives the same Catalan counts, also checked against the stored Carlitz-Riordan polynomials at $q=1$. Disk segment convolution integrals from Theorem 1 of the preprint are evaluated independently at 130 and 170 decimal digits for $3\leq n\leq7$, with the known value at $n=3$ serving as a normalization control. At $n=8$, a second high-precision evaluation rearranges the same published closed form; it is not an independent derivation.
A separate line-coordinate integral of the expected area of a random triangle verifies the disk four-point value. The change of variables is first checked against the known product of two disk areas. Uniform-point simulations use 500000 samples for each of the three regions and test all six sample sizes, together with sampler moments, known geometric controls and affine transformations. Every estimate differs from its predicted probability by less than two standard errors. The simulations and numerical quadratures are diagnostic checks. The exact arithmetic and Arb enclosures of the published formulas justify the stored precision. The attached checks also test the entries read back from the database.