The Lamé curve, also called superellipse, is described by the following equation.
\[\left|\frac{x}{a}\right|^n\!\! + \left|\frac{y}{b}\right|^n\! = 1\]
In the polar coordinate system,
\[r=\left(\left|\frac{\cos(\theta)}{a}\right|^n\!\! + \left|\frac{\sin(\theta)}{b}\right|^n\!\right)^{-1/n}\]
