Question: Write a python function that will plot the points that come from the following procedure: Create a regular hexagon Pick a random point, P, inside

Write a python function that will plot the points that come from the following procedure:

  1. Create a regular hexagon

  2. Pick a random point, P, inside the hexagon.

  3. Make a triangle, T, by randomly connecting P to two adjacent vertices of the hexagon.

  4. Compute the centroid of T. This becomes your new random point, P. Save it, make a new random triangle as above, compute the new centroid etc Repeat this process 10,000 times.

  5. Make a scatter plot of all your 10,000 random points. What emerges?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!