st: Sierpinski Triangle

Description Usage Arguments Details Value Author(s) References Examples

View source: R/st.R

Description

To initial, plot and show a Sierpinski triangles.

Usage

1
  st(A,B)

Arguments

A,B

The degrees of two of the three angles of a 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.

Value

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

Author(s)

B. Wang bwang@jaguar1.usouthal.edu

References

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

Examples

1
2
(abc = st(50,60))
plot(abc, iter=10)

spt documentation built on May 30, 2017, 1:36 a.m.

Search within the spt package
Search all R packages, documentation and source code