Generating Points with Uniform Density in a Triangle, Parallelogram, or Disk

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 generates points with a uniform density inside a triangle, parallelogram, or disk. Drag the red points to vary the figures. The probability of a point's falling in a region is proportional to the area of the region.

Contributed by: Jaime Rangel-Mondragon (July 2013)
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