Squircles

A squircle is a shape intermediate between a square and a circle. There is no single mathematical definition, rather there are a number of curves that fit this shape. All general squircles are parametrized, and can vary between circle and square.

Superellipse

The best known squircle is the superellipse, popularized by Piet Hein. Martin Gardner wrote a detailed narrative of its origin in a Scientific American column in 1977. The text is replicated in https://piethein.com/superellipse/ but that’s missing equations and figures.

The superellipse has the formula $|x|^n + |y|^n = 1$ (we’ll use a unit radius for convenience). When $n=2$ it is a circle, and it approaches a square asymptotically as $n \rightarrow \infty$.