Converting rose curve to rectangular

r = 2 sin (2 theta)

I am writing a program that draws a rose curve. So far I can only draw a circle. Basically from 0 to 360 degrees, it draws a point at (Cos(degree), Sin(degree)), but no idea how to implement a rose curve in this format.

Answers
You basic problem seems to me that the curve is not single valued in x or y. When you say that your program "draws" (or rather would draw if it worked) are you referring to a pen plotter or are you drawing to a video display? Or would a series of x,y number pairs, (ie cartesian coordinates ) be acceptable - bearing in mind that such a series would not draw a single line from left to right?
ianmoth
19 February 2012
Would it be possible to post the code you have so far up on http://gist.github.com so we can take a look at it?
theo.cushion
20 February 2012
Add an answer Cancel reply

Similar questions