Butterflies

p = ecos(θ) – 2 cos(4 θ) + sin5(θ/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.

 

10 Responses to “Butterflies”

  1. 5:00 am on August 30 2008, Willem Van den Broeck said:

    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.

  2. 5:00 am on August 30 2008, duffy said:

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

  3. 5:00 am on August 30 2008, kp said:
  4. 5:00 am on August 30 2008, Solusan said:

    Great!!

    ^_^

  5. 5:00 am on August 30 2008, Mariposas generadas a través de las matemáticas « Mare Magnum said:

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

  6. 5:00 am on August 30 2008, GEARFUSE » Mathematical Butterflies said:

    [...] 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 [...]

  7. 5:00 am on August 30 2008, meneame.net said:

    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….

  8. 5:00 am on August 30 2008, TIPS » Blog Archive » Mathematical Butterflies said:

    [...] Link – via Reality Carnival [...]

  9. 5:00 am on August 30 2008, Mariposas generadas a través de una ecuación | Mare Magnum said:

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

  10. 5:00 am on August 30 2008, live from sublurbia » I heart math. I don’t get it much, but I heart it anyway. said:

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

Leave a Reply