Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
-
Create a regular hexagon
-
Pick a random point, P, inside the hexagon.
-
Make a triangle, T, by randomly connecting P to two adjacent vertices of the hexagon.
-
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.
-
Make a scatter plot of all your 10,000 random points. What emerges?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started