TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Monte Carlo method, calculating π

8 点作者 StylifyYourBlog超过 10 年前

2 条评论

anonova超过 10 年前
This is a pretty neat way to estimate pi. Rust uses this example in its std::rand documentation: <a href="http://doc.rust-lang.org/std/rand/#monte-carlo-estimation-of-π" rel="nofollow">http:&#x2F;&#x2F;doc.rust-lang.org&#x2F;std&#x2F;rand&#x2F;#monte-carlo-estimation-of...</a>
compsciphd超过 10 年前
This was an interview Q on my Google interview. hated it (I ended up using Riemann sums)
评论 #8873667 未加载