How to Plot a Polygon on X-Y Graph Knowing the Radius

Click For Summary

Homework Help Overview

The discussion revolves around plotting a regular polygon on an X-Y graph, given the number of sides and the radius. The original poster expresses difficulty in calculating the coordinates of the polygon's corners without traditional tools like a compass or ruler.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants explore methods to calculate the positions of the polygon's vertices based on the radius and number of sides. There is a mention of using angles and trigonometric functions to derive the coordinates.

Discussion Status

Some participants have provided formulas for calculating the vertices of the polygon, while others have questioned the validity of these formulas. The discussion includes attempts to clarify the difference between smooth curves and the desired polygonal shape.

Contextual Notes

There is an indication that the original poster is seeking a method that avoids traditional geometric tools, which may influence the approaches discussed. Additionally, the original poster's confusion about the formulas suggests a need for further clarification on the mathematical concepts involved.

quddusaliquddus
Messages
353
Reaction score
3

Homework Statement



I want to plot a Regular Polygon of many sides on a X-Y graph where I know the number of sides and the radius.

I would like a method to calculate the position of the corners of this shape without using compass/ruler.

If there was an algorithm that goes all the way around the shape then that'd be better.

Homework Equations



x^2 + y^2 = r^2

http://en.wikipedia.org/wiki/Polygon"

The Attempt at a Solution



Im afraid I am completely stuck on this. I keep going from calculating all the angles and length of sides of each triangle segment of the polygon to a x-y graph where I am trying to calculate the x-y coordinates of the corners.
 
Last edited by a moderator:
Physics news on Phys.org
Hi. At the link I provided there is a formula:

(x,y) = 2R(cos(t), sin(t) )*sin ( t + arcsin ( a / 2R ) )

I just wanted to get ot confrmed that it is correct. It doesn't look it.
 
That formula will give a "smooth" curve, not a "broken line" as you need for a polygon.

If you want to construct a regular polygon with n sides, radius r, center at [itex](x_0,y_0)[/itex], the line from the center to one vertex making angle [itex]\theta[/itex] with the x-axis, the coordinates of the vertices are given by

[tex]x= x_0+ r cos(\left(\frac{2\pi}{n}\right)i+ \theta)[/tex]

[tex]y= y_0+ r sin(\left(\frac{2\pi}{n}\right)i+ \theta)[/tex]

Where i runs from 0 to n-1.
 
Thanks. Thats exactly what I needed.
 

Similar threads

Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K