Answered step by step
Verified Expert Solution
Link Copied!

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:

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago