SciencesPo (version 1.3.8)

butterfly: The Butterfly Curve

Description

The butterfly curve is a parametric equation discovered by Temple Fay where two functions in a plane produces a butterfly-like curves.

Usage

butterfly(n = 100, nb = 500, title = element_blank())

Arguments

n
An integer for the background points.
nb
An integer for the butterfly's points.
title
A character vector for the plot title.

References

Fay, Temple H. (May 1989). The Butterfly Curve. Amer. Math. Monthly 96 (5): 442-443. doi:10.2307/2325155.

Examples

Run this code
butterfly(10, 100, title="10 x 100")
butterfly(10, 200, title="10 x 200")
butterfly(10, 500, title="100 x 500")
butterfly(100, 1000, title="100 x 1000")

Run the code above in your browser using DataLab