Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Cantor Set Create a new python file called CantorStart.??, import turtle graphics as before. Go to the position (while pen is up) (-150,80). Set the
Cantor Set Create a new python file called "CantorStart.??", import turtle graphics as before. Go to the position (while pen is up) (-150,80). Set the line thickness to 5. Put pen down. Go to (150,80) Lift pen up, go to (-150,70), pen down, go to (150,70). Now backtrack to (-50,70), change pen color to white, and go to (50,70). You have now removed the middle third of the line drawn in the previous part. Repeat this process whereby you "remove" (by using the color white) the middle thirds of the previous lines (move down 10 units vertically for each line). Do this 4 times. You can set up a loop to do it or do it manually. Make sure that middle thirds of the black lines from teach previous set are removed. This is the start of a fractal known as the "Cantor Set" 1. 2. 3. 4. 5. Try to make the process of generating the "Cantor Set" automatic i.e. don't manually encode the drawings, but use loops. You will need to derive (or look up) the formula for it to do this. Try to do 8 iterations. Cantor Set Create a new python file called "CantorStart.??", import turtle graphics as before. Go to the position (while pen is up) (-150,80). Set the line thickness to 5. Put pen down. Go to (150,80) Lift pen up, go to (-150,70), pen down, go to (150,70). Now backtrack to (-50,70), change pen color to white, and go to (50,70). You have now removed the middle third of the line drawn in the previous part. Repeat this process whereby you "remove" (by using the color white) the middle thirds of the previous lines (move down 10 units vertically for each line). Do this 4 times. You can set up a loop to do it or do it manually. Make sure that middle thirds of the black lines from teach previous set are removed. This is the start of a fractal known as the "Cantor Set" 1. 2. 3. 4. 5. Try to make the process of generating the "Cantor Set" automatic i.e. don't manually encode the drawings, but use loops. You will need to derive (or look up) the formula for it to do this. Try to do 8 iterations
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