Igor Schein on Mon, 29 Mar 1999 14:15:07 -0500

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

drawing right N-gons


I need to be able to draw right N-gons in PARI.

Here's the steps I do

1) using polroots(), obtain a vector of Nth roots of unity:
2) Sort the list by arg():
( I wrote a simple function to do that )
3) Draw:

The only problem with above is that the sheet of paper is rectangular,
so the image is scaled and I don't get a right N-gon.  

So my question is how can I scale, so that I get a right N-gon?