1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Polar Coordinates, Six-Pointed Star, and a Hexagon

  1. Jun 20, 2011 #1
    1. The problem statement, all variables and given/known data

    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.

    2. Relevant equations



    3. The attempt at a solution
     
  2. jcsd
  3. Jun 21, 2011 #2

    lanedance

    User Avatar
    Homework Helper

    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 teh 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
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Polar Coordinates, Six-Pointed Star, and a Hexagon
  1. Polar Coordinates (Replies: 9)

Loading...