Gielis' Superformula

This is my at rendering Giellis' Superformula. Think I might have got it wrong a bit.
If anyone can find a more elegant way to this it would be awesome!
http://en.wikipedia.org/wiki/Superformula
From this formula, I have used p=n_2, q=n_3 and n=n_1.
Let me know if you do it better!