**p = e ^{cos(θ)} – 2 cos(4 θ) + sin^{5}(θ/12)**

or in ActionScript:

**var r:Number = Math.exp(Math.cos(i)) – 2 * Math.cos(i * 4) + Math.pow(Math.sin(i / 12), 5);**

r = radius, θ = angle. Figure out the x and y from there.

Randomly scale, position, rotate. Coat with bevel and dropshadow. Bake at 350˚ for 30 minutes. Serves 5.

Dug up in Computers and the Imagination by Clifford Pickover.

## 4 Comments

just a warning that the suggested temp of 350° is Fahrenheit. Don’t bake them at 350°C cause then you’re in for a treat. Believe me, i know.

So where’s the Flash? You offer Actionscript, but no Flash file demonstrating it?

duffy, see http://www.artfromcode.com/?p=319

Great!!

^_^

## 7 Trackbacks

[…] Visto en Art From Code vía Neatorama. […]

[…] Link (via) Read More Beautiful Butterfly ClockTime Cube Triangulates The Current Time TAGS: art, butterfly, code, Design, formula, math, programming SHARE: Stumble Upon, Digg, del.icio.us, Reddit this, SlashdotSend to a FriendPermalink […]

Mariposas matemáticas…Así es como un matemático dibuja una mariposa: p = e^cos(θ) – 2 cos(4 θ) + sin^5(θ/12) Donde θ es el ángulo….

[…] Link – via Reality Carnival […]

[…] Visto en Art From Code vía Neatorama. […]

[…] the meantime, I give you the formulas for hearts and butterflies. Now to find one for […]

[…] es como un matemático dibuja una mariposa: p = e^cos(θ) – 2 cos(4 θ) + sin^5(θ/12) Donde θ es el ángulo…. Son preciosas, es otra […]