Polar Coordinates, Six-Pointed Star, and a Hexagon

Click For Summary
SUMMARY

This discussion focuses on creating a six-pointed star and a hexagon using polar coordinates in MATLAB. For the hexagon, the user needs to define six conditions for each side, starting with a straight line equation such as y=1 for theta in the range of (-π/6, π/6), and then converting this to r(theta). The process for the six-pointed star involves breaking it down into two triangles, utilizing similar mathematical principles for conversion and translation of theta.

PREREQUISITES
  • Understanding of polar coordinates and their equations
  • Familiarity with MATLAB for plotting
  • Basic knowledge of trigonometric functions
  • Ability to manipulate mathematical equations for graphical representation
NEXT STEPS
  • Research how to implement polar coordinates in MATLAB for graphical plotting
  • Learn about the mathematical properties of hexagons and their polar representations
  • Study the construction of geometric shapes using polar coordinates
  • Explore the concept of translating angles in polar equations
USEFUL FOR

Students in computer science and engineering courses, particularly those focusing on mathematical modeling and graphical representation in MATLAB.

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
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 24 ·
Replies
24
Views
3K
Replies
7
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K