Random Polygon to Ellipse

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

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

Repeatedly averaging the neighboring vertices of a random polygon forms a sequence of polygons that converge to an ellipse.

Contributed by: Rongzhong Li (August 2014)
Open content licensed under CC BY-NC-SA



The averaging operation is represented in the code by a matrix.

Snapshot 1: the initial state of 20 2D points

Snapshot 2: the final state of the 20 2D points

Snapshot 3: the middle state of 30 3D points


[1] A. Elmachtoub and C. Van Loan, "From Random Polygon to Ellipse: An Eigenanalysis," SIAM Review, 52(1), 2010 pp. 151–170. doi:10.1137/090746707.

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.