Polar Coordinates, Six-Pointed Star, and a Hexagon

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 8K views
GreenPrint
Messages
1,186
Reaction score
0

Homework Statement



Hey I have to create a six-pointed star and a hexagon with polar coordinates using MATLAB. I don't need help with using MATLAB, I just need help with the math. Note that I don't really need to know how the math sense this assignment is for a CSE course. I just don't know how to create a six-pointed star or a hexagon using polar coordinates because I don't know enough of the math, so I was wondering if someone could tell me how.

Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
For a hexagon:
you will need to define 6 different conditions for each side
for the first define an equation for a straight line (eg. y=1) for theta in (-pi/6, pi/6).
Then convert this to r(theta).
Once you have the form for the first segment it should be simple to convert to the others by using the same from translating theta f(theta + n*pi/3)

The star will be similar and i would break it down into two triangles