One example of a fractal curve is the Koch curve introduced by the Swedish mathematician Helge von Koch in 1904. You can draw a Koch curve by beginning with a line segment and taking the following...


One example of a fractal curve is the Koch curve introduced by the Swedish mathematician Helge von Koch in 1904. You can draw a Koch curve by beginning with a line segment and taking the following steps:


• Divide the line segment into three equal parts.


• Draw an equilateral triangle using the middle part as its base.


• Erase the middle part.


The result is







You then recursively apply the previous three steps to each of the four line segments. Koch curves display an intricate beauty as the number of recursive levels increases. Write a recursive program that creates a Koch curve.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here