Use a procedure that takes as input a positive integer and two real numbers a and b
and produces as output a polygon centered at (a, b). Base on the procedure, obtain a list of twenty decagons centered in (0, 0), (1, 1), ..(20, 20)
(I have no hint,please help, thanks)
geometry package
Such (or very similar) procedure already exists in geometry package. It is called RegularPolygon. It also includes radius that you didn't mention.
Assuming, for example, that the radius is 1, the procedure that you described, can be written as
The list of polygons can be drawn as
Alec
Hi, Alec. The way you do it
Hi, Alec. The way you do it is just list the decagons on the plot, but cannot list the points of the decagons. I actuaal solve this by differnet approach.But you give me a big help on starting a procedure. Thanks.