TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Monte Carlo method, calculating π

8 pointsby StylifyYourBlogover 10 years ago

2 comments

anonovaover 10 years ago
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>
compsciphdover 10 years ago
This was an interview Q on my Google interview. hated it (I ended up using Riemann sums)
评论 #8873667 未加载