Your equations do not describe the astroid. You should not multiply by 3, you should take a sine and cosine
cubed,
x=cos³(θ), y=sin³(θ)
:
http://en.wikipedia.org/wiki/Astroid[
^].
I don't think that, without your specifications of language and platform and the demonstrated level in mathematics, any further discussion might make any sense, sorry.
—SA