Approximating Pi by the Monte Carlo Method

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

This Demonstration approximates using the Monte Carlo method: (1) randomly select points in a square with an inscribed circle; (2) multiply the number of points inside the circle by four; (3) divide by the total number of points in the square.

Contributed by: Zubeyir Cinkir (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

detailSectionParagraph


Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send