热度排名 #2184
用随机点近似计算圆周率
Calculate pi from random numbers quick numerical approximation of pi using random points. #shorts
在正方形里均匀撒点,落入内切圆的比例可以估计圆与正方形的面积比。跟着短片试两次不同的样本量,比较每次得到的数值离 π 多远。
Zak's Lab · 1 串讨论 · 热度 1
讨论出处
- Reddit · GECLM · r/explainlikeimfive · 原讨论 ↗2022-12-09 · 评论分数 0