Superellipse
Overview
 
A superellipse is a geometric figure defined in the Cartesian coordinate system
Cartesian coordinate system
A Cartesian coordinate system specifies each point uniquely in a plane by a pair of numerical coordinates, which are the signed distances from the point to two fixed perpendicular directed lines, measured in the same unit of length...

 as the set of all points (xy) with


where n, a and b are positive numbers.

This formula defines a closed curve contained in the rectangle
Rectangle
In Euclidean plane geometry, a rectangle is any quadrilateral with four right angles. The term "oblong" is occasionally used to refer to a non-square rectangle...

 −ax ≤ +a and −b ≤ y ≤ +b.
 
x
OK