dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

Tools to calculate the area and perimeter of the Koch flake (or Koch curve), the curve representing a fractal snowflake from Koch.

Answers to Questions

How to calculate the Koch Flake Perimeter?

The length of the border of the flake is infinite. At each iteration, a border of length 1 become 4/3.

Starting from a straight line segment divided by 3, a broken line of 4 segments os obtained: the length is therefore increased by 4/3 (increase of 33%).

Example: After 2 iterations, a line of initial length \( l \) has a new length of \( l \times \frac43 \times \frac43 = l \times \frac{16}{9} \).

If the number of iterations is infinite, the length is infinitely increased by 4/3. The total length of this fractal curve is infinite. $$ \lim\limits_{n \to +\infty} \left( \frac43 \right)^n = +\infty $$

How to calculate the area of the Koch flake?

The area of the flake is finite and equals 8/5 of the area of the initial triangle.

How to draw a Koch flake?

The algorithm is as follows:

0 - Draw an isosceles triangle and for each side (segment)

1 - Calculate the points at 1/3 and 2/3 of the segment

2 - Draw the isoscele triangle based on the segment formed with the 2 points found

4 - Repeat from step 1 for each segment of the new figure

Ask a new question

Source code

dCode retains ownership of the source code of the script Koch Flake online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. To download the online Koch Flake script for offline use on PC, iPhone or Android, ask for price quote on contact page !