OFFSET
0,1
COMMENTS
The average length of a random line segment in a unit square defined as follows. A line that is making a random angle with a given edge of the square is chosen, and a random distance of this line from a given vertex of this edge is chosen uniformly between 0 and the distance to the opposite vertex in the square. The segment is then being chosen by picking at random two points between the two intersection points of the line with the perimeter of the square.
LINKS
Eric Rosenberg, The expected length of a random line segment in a rectangle, Operations Research Letters, Vol. 32, No. 2 (2004), pp. 99-102.
EXAMPLE
0.26450500700786984551577520129722526936340009096805...
MAPLE
evalf(sqrt(8/9)*arcsinh(1)/Pi, 120); # Alois P. Heinz, Oct 29 2021
MATHEMATICA
RealDigits[2*Sqrt[2]*Log[1 + Sqrt[2]]/(3*Pi), 10, 100][[1]]
PROG
(PARI) 2*sqrt(2)*log(1 + sqrt(2))/(3*Pi) \\ Michel Marcus, Oct 29 2021
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Amiram Eldar, Oct 29 2021
STATUS
approved