fractals

Fractal dimension with the Mass-radius method

Fractal dimension with the Mass-radius method Question: I have some images for which I want to calculate the Mass-Radius dimension to determine the fractal characteristics in the image. Here is one of them : Ottawa.png: The mass dimension defines the relationship between the area located within a certain radius and the size of this radius …

Total answers: 1

How should i draw a Peano Curve?

How should i draw a Peano Curve? Question: This is my code for drawing a peano curve using python turtle in Visual Studio Code. I can get level 1 just fine but other than that it does not really repeat the shape correctly for the subsequent levels. Any suggestions? from turtle import * def peano(level, …

Total answers: 1

Function with varying number of For Loops (python)

Function with varying number of For Loops (python) Question: My problem is difficult to explain. I want to create a function that contains nested for loops, the amount of which is proportional to an argument passed to the function. Here’s a hypothetical example: Function(2) …would involve… for x in range (y): for x in range …

Total answers: 8