主题
Search

正方形直线选取


正方形直线选取是在一个正方形内随机放置的点对(对应于线段的端点)的选择。n 条随机线段可以在单位正方形中用 Wolfram 语言使用以下函数选取RandomPoint[Rectangle[], {n, 2}].

单位正方形内部随机选取两个点,它们之间的平均距离是超立方体直线选取n=2 情况,即,

Delta(2)=1/(15)[sqrt(2)+2+5ln(1+sqrt(2))]
(1)
=1/(15)(2+sqrt(2)+5sinh^(-1)1)
(2)
=0.521405433...
(3)

(OEIS A091505)。

SquareLinePickingDistribution

精确的概率函数由下式给出

 P(l)={2l(l^2-4l+pi)   for 0<=l<=1; 2l[4sqrt(l^2-1)-(l^2+2-pi)-4tan^(-1)(sqrt(l^2-1))]   for 1<=l<=sqrt(2)
(4)

(M. Trott,私人通讯,3 月 11 日,2004 年),相应的分布函数由下式给出

 D(l)={1/2l^4-8/3l^3+pil^2   for 0<=l<=1; -1/2l^4-4l^2tan^(-1)(sqrt(l^2-1))+4/3(2l^2+1)sqrt(l^2-1)+(pi-2)l^2+1/3   for 1<=l<=sqrt(2).
(5)

由此,可以计算平均距离 l^_=Delta(2),以及长度的方差

var(l)=1/(225)[69-4sqrt(2)-10(2+sqrt(2))sinh^(-1)1-25(sinh^(-1)1)^2]
(6)
=0.061469....
(7)

统计中位数四次方程的根给出

 1/2x^4-8/3x^3+pix^2-1/2=0,
(8)

大约为 l^~=0.512003...

n 阶原点矩对于 n=2, 4, 6, ... 给出为 1/3, 17/90, 29/210, 187/1575, 239/207, ... (OEIS A103304A103305)。

如果不是从正方形内部选取两个点,而是在单位正方形不同边上随机选择两个点,则以这种方式选取的两个点之间的平均距离为

Delta_f(2)=2/3int_0^1int_0^1sqrt(x^2+y^2)dxdy+1/3int_0^1int_0^1sqrt(1+(y-u)^2)dudy
(9)
=1/9(2+sqrt(2)+5sinh^(-1)1)
(10)
=1/9[2+sqrt(2)+5ln(1+sqrt(2))]
(11)
=0.869009...
(12)

(OEIS A091506; Borwein 和 Bailey 2003, p. 25; Borwein et al. 2004, p. 66)。


另请参阅

盒积分, 立方体直线选取, 圆盘直线选取, 超立方体直线选取, 正方形点选取, 正方形三角形选取, 三角形直线选取, 三角形点选取

使用 Wolfram|Alpha 探索

参考文献

Bailey, D. H.; Borwein, J. M.; Kapoor, V.; 和 Weisstein, E. W. "Ten Problems in Experimental Mathematics." Amer. Math. Monthly 113, 481-509, 2006b.Borwein, J. 和 Bailey, D. Mathematics by Experiment: Plausible Reasoning in the 21st Century. Wellesley, MA: A K Peters, 2003.Borwein, J.; Bailey, D.; 和 Girgensohn, R. Experimentation in Mathematics: Computational Paths to Discovery. Wellesley, MA: A K Peters, 2004.Sheng, T. .K. "The Distance between Two Random Points in Plane Regions." Adv. Appl. Prob. 17, 748-773, 1985.Sloane, N. J. A. 序列 A091505, A091506, A103304, 和 A103305,出自 "整数序列在线百科全书"。Trott, M. "The Mathematica Guidebooks Additional Material: Average Distance Distribution." http://www.mathematicaguidebooks.org/additions.shtml#S_1_14.

在 Wolfram|Alpha 中被引用

正方形直线选取

请引用为

Weisstein, Eric W. "正方形直线选取。" 出自 MathWorld--Wolfram Web 资源。 https://mathworld.net.cn/SquareLinePicking.html

主题分类