The moth is a fractal equilateral triangle with sides replaced by the lepidopter curve, a variant of the Koch curve. It has properties similar to those of the siamese, a fractal rhombus based on the Koch curve, and can therefore be broken down into infinite copies of itself. This figure was discovered by Giorgio Pietrocola in March 2024 and published in several Italian mathematics journals. [1] [2]
The algorithm for creating the Lepidoptera curve is similar to that for the Koch curve. To highlight this, an algorithm is used that converges more slowly than the one normally used to obtain the Koch curve. For both curves, we start with a segment and replace it with two angled segments which, together, would form an isosceles triangle with angles of 30, 120 and 30 degrees. The same transformation is then applied to the segments, which grow at each level as powers of two. The difference between the curves lies in the different alternation to the right or left of the substitutions made on the segments, as shown in the figure.
to falena :lato :liv right 180 make "nstop int (0.5+(power 2 :liv-1)*4/3)+2 make "mem pos make "hh heading hideturtle penup forward :lato/2 back :lato/2 pendown make "conta 0 make "mem pos make "hh heading falenarico :lato*3 :liv 1 1 penup setpos :mem setheading :hh pendown make "conta 0 make "mem pos make "hh heading falenarico :lato*3 :liv 1 -1 penup setpos :mem setheading :hh pendown showturtle right 180 end
to falenarico :x :l :s :t localmake "x :x/sqrt 3 if :l=0 [make "conta :conta+1 if :conta>=:nstop [ stop] forward :x stop ] left 30*:s*:t falenarico :x :l-1 -1 -:t right 60*:s*:t falenarico :x :l-1 1 -:t left 30*:s*:t end
The falenarico procedure is used by the falena procedure. After copying and saving them in the editor of FMSLogo, you can enter falena 200 10 in the command line to obtain a moth of the specified size and iteration level. Additional procedures such as falenarep to obtain a replicating moth as shown in the figure are available in the online article. [2]
While the siamese and anti-siamese are obtained by replacing the sides of a rhombus with Koch curves, the moth is obtained by replacing the sides of an equilateral triangle with outward-facing lepidopteran curves. If they are inward-facing, an anti-moth is created (see figure). The perimeters of these fractal polygons are all infinite. While the area of the siamese increases by 40% of its reference rhombus, the moth increases by 75% of its triangle. The anti-figures decrease by the same amount. [1] . Both the siamese and the moth, together with their anti-figures, break down into infinite similar copies.