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.

This entry was posted in particles. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback.

4 Comments

  1. Willem Van den Broeck
    Posted August 31, 2008 at 10:36 am | Permalink

    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. duffy
    Posted September 1, 2008 at 12:45 am | Permalink

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

  3. kp
    Posted September 1, 2008 at 9:23 am | Permalink
  4. Posted September 4, 2008 at 6:23 am | Permalink

    Great!!

    ^_^

7 Trackbacks

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

  2. By GEARFUSE » Mathematical Butterflies on September 4, 2008 at 10:08 am

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

  3. By meneame.net on September 4, 2008 at 11:57 am

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

  4. By TIPS » Blog Archive » Mathematical Butterflies on September 6, 2008 at 6:44 pm

    […] Link – via Reality Carnival […]

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

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

  7. By Mariposas matemáticas… | Salondesol on April 16, 2015 at 3:06 pm

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Your email address will never be published.