I am using Turing to do that but the basic stuff (cos, sin...) is the same
I have now posted that in Graphics forum