spt (version 2.5.1)

st: Sierpinski Triangle

Description

To initial, plot and show a Sierpinski triangles.

Usage

st(A,B)

Arguments

A,B

The degrees of two of the three angles of a triangle.

Value

The dimension of the ST will be returned if the original triangle is an acute triangle.

Details

When the original triangle is an acute triangle, the area of the smallest ST to be drawn is determined by (tol * S), where S is the total area for plotting. No restriction is applied to iter.

If the original triangle is an obtuse triangle, the largest value of iter is 12.

tol: A stopping creiteria to draw the sub-SPT. Default value 0.0001.

References

Zhang, XM., Hitt, R. Wang, B. and Ding, J. (2008). Sierpinski Pedal Triangle. Fractals. 16(2): 141-150.

Examples

Run this code
# NOT RUN {
(abc = st(50,60))
plot(abc, iter=10)

# }

Run the code above in your browser using DataLab