Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
daveFNbuck
on March 15, 2017
|
parent
|
context
|
favorite
| on:
Monte Carlo estimation of Pi
You could try R. This ends up being a pretty straightforward one-liner:
sum(runif(10^6, 0, 1)^2 + runif(10^6, 0, 1)^2 < 1) / 10^6 * 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: