Have you ever heard of a squircle? It’s kind of like a circle, but with more pronounced “edges.” When you plot one out, it looks like a beveled square (at least in the first quadrant). Here’s an example:
where
When p=4:
Isn’t that nice? It looks so happy!
But, in a wildly unrelated tangent, I was wondering, how would you represent a hexagon? More specifically, how would you represent a hexagon in the polar coordinate system?
Just for fun, I’m going to couch this in terms of a scientific investigation.
Question: What is the polar equation for a hexagon?
Hypothesis: It’ll involve an absolute-value sine function. That’s because the x-y graph should look something like this:
Variables: Independent = x, ; Dependent = y. (See what I did there? Okay…)
Investigation: I decided to begin by dealing with the equilateral triangle in the first quadrant. It looks like this:
I then solved for the value of x.
This solution can be converted into a different form:
Now, if you add a floor function, you can have it repeat for angles up to 360 degrees!
Conclusion: The hypothesis was incorrect – the graph is actually a concatenation of segments from a cosecant graph. Below is a graph of this equation in Wolfram Alpha!




Very nice, but what would be a generalized equation for an n-sided polygon?
I’m working on it right now actually! I have an answer, but it’s really complex and I want to simplify it first. If I can’t find a way to simplify, I’ll go ahead and post the long equation.