Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the polar radius of a regular polygon
ResourceFunction["RegularPolygonAngleRadius"][t,n] computes the polar radius at angle t with respect to the x axis of a regular polygon with n vertices equally spaced around the unit circle. | |
ResourceFunction["RegularPolygonAngleRadius"][t,r,n] computes the radius of a regular polygon whose vertices lie on a circle of radius r. | |
ResourceFunction["RegularPolygonAngleRadius"][t,t0,r,n] starts at angle t0 with respect to the x axis. |
Draw the perimeter of a regular polygon using polar coordinates:
In[1]:= |
|
Out[1]= |
|
Use a different radius and starting angle:
In[2]:= |
|
Out[2]= |
|
Draw the perimeter of any regular polygon using parametric coordinates:
In[3]:= |
|
Out[3]= |
|
Construct a cylinder with a polygonal cross-section:
In[4]:= |
|
Out[4]= |
|
RegularPolygonAngleRadius gives the boundary of RegularPolygon:
In[5]:= |
|
Out[5]= |
|
With n very large (>100), one gets an approximation to a circle:
In[6]:= |
|
Out[6]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License