OFFSET
0,1
COMMENTS
The median of the probability density function f(x) = 4*x*(Pi/2 - 2*x + x^2/2) for x <= 1, and 4*x*(arcsin(1/x) - arccos(1/x) + 2*sqrt(x^2-1) - (x^2+2)/2) for 1 <= x <= sqrt(2) (Ghosh, 1951).
The second root of 3*x^4 - 16*x^3 + 6*Pi*x^2 - 3 = 0.
LINKS
Birendranath Ghosh, Random distances within a rectangle and between two rectangles, Bulletin of Calcutta Mathematical Society, Vol. 43 (1951), pp. 17-24.
Eric Weisstein's World of Mathematics, Square Line Picking.
EXAMPLE
0.512003269083333882131081199474793545179390944060415...
MATHEMATICA
RealDigits[Root[3*x^4 - 16*x^3 + 6*Pi*x^2 - 3, 2], 10, 120][[1]]
PROG
(PARI) solve(x = 1/2, 1, 3*x^4 - 16*x^3 + 6*Pi*x^2 - 3)
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Amiram Eldar, Mar 26 2026
STATUS
approved
