I got an assignment to write a program which draws the ampersand curve. The equation of ampersand curve looks like this: $(y^2-x^2)(x-1)(2x-3)=4(x^2+y^2-2x)^2$
I was given an advice to convert this equation into the polar form and so I did. With help of maple I got this little beastie(I wonder if there is a simpler form...): $$\frac{1}{4}\cdot \frac{11\cdot cos(\theta)+10\cdot cos(\theta)^3+\sqrt3\cdot \sqrt{-(21\cdot cos(\theta)^2-16)\cdot (2\cdot cos(\theta)^2-1)^2)}}{-cos(\theta)^2+2\cdot cos(\theta)^4+2}$$
But there is a problem. I get discontinuities in the curve(look at the loops). You can see the picture below. I guess something is wrong with the polar equation. Is there a way to get the polar form of ampersand curve without discontinuities?