Wednesday, September 8, 2010

Making Flowers

Want to make flowers in a graphing calculator? If you have polar functions, you can.

It's this formula I made up:
r=a*cos(bθ)+c
In all cases, if you put a negative number, it does the same thing as the positive value.

a is the mean distance from the flower's tip to root.
b is the number of petals if odd, twice that number if even. (So if you want 4 petals, do b=2. Sorry, no 2-petaled flowers). If you do fractions it will be distorted, and if you do 0 it will make a circle with a radius of a+c.
c is the most complex, as it involves morphing, and does different stuff to different values of b:

If b is even, it will make horizontal petals have a+c length and vertical petals have a-c length.
If b is odd, it will make two petals, one on top of the other, where just one petal would have been if c=0. One petal would have a+c length and one would have a-c length.

So there you have it. Next time we will feature what happens when you replace cos with sin, and more interesting stuff like that.

No comments:

Post a Comment