SierpinskiCurve

SierpinskiCurve[n]

gives the line segments representing the n^(th)-step Sierpiński curve.

Details and Options

Examples

open allclose all

Basic Examples  (2)

A 2D Sierpiński curve:

In[1]:=
Click for copyable input
Out[1]=

Lengths of the approximations to the Sierpiński curve:

In[2]:=
Click for copyable input
Out[2]=

The formula:

In[3]:=
Click for copyable input
Out[3]=

Visualize the Sierpiński curve in 2D with splines:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Options  (1)

Applications  (4)

Properties & Relations  (3)

Possible Issues  (2)

Neat Examples  (1)

See Also

PeanoCurve  HilbertCurve  KochCurve

Introduced in 2017
(11.1)