Coding-recitation assignment – Drawing fractals_Solution

$35.00 $29.00

Students are encouraged to complete the assignment prior to the recitation. This assignment will not be collected nor graded. The Mandelbrot set is a set of points C on the complex plane for which the value of = “& + , + = 0 , remains bounded for all n. The above image shows the…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Students are encouraged to complete the assignment prior to the recitation. This assignment will not be collected nor graded.

The Mandelbrot set is a set of points C on the complex plane for which the value of

= & + , + = 0 , remains bounded for all n. The above image shows the set plotted on

the complex plane (x is the real axis, y is imaginary, and black indicates points in the set).

The boundary of this set is a two-dimensional fractal. You can interactively view the Mandelbrot set at math.hws.edu/eck/js/mandelbrot/MB.html . Try repeatedly zooming in on the boundaries of the set and see what you find!

For any complex number C, it is known that once the absolute value of becomes greater than 2, the point C is not in the Mandelbrot set. To approximate this set, one chooses points on a grid and iterates the equation for each of these points until reaching a predefined maximum n or until the point is determined not to be in the set. For plotting, each point or grid cell is colored based on the maximum n value for which | | < 2.

  1. Plot the Mandelbrot set for a 4×4 grid centered around the origin (x is the real axis, y is the imaginary axis) with a cell size of 0.1×0.1 and max n=10

  1. Plot the Mandelbrot set for a 2×2 grid centered around the origin (x is the real axis, y is the imaginary axis) with a cell size of 0.01×0.01 and max n=10

  2. Plot the Mandelbrot set for a 2×2 grid centered around the origin (x is the real axis, y is the imaginary axis) with a cell size of 0.01×0.01 and max n=100

  3. Plot the Mandelbrot set for a 2×2 grid centered around the origin (x is the real axis, y is the imaginary axis) with a cell size of 0.001×0.001 and max n=100

Coding-recitation assignment - Drawing fractals_Solution
$35.00 $29.00