300px|thumb|Examples of superellipses for , .
A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features of semi-major axis and semi-minor axis, and symmetry about them, but defined by an equation that allows for various shapes between a rectangle and an ellipse.
In two dimensional Cartesian coordinate system, a superellipse is defined as the set of all points on the curve that satisfy the equation
<math display="block">\left|\frac{x}{a}\right|^n\!\! + \left|\frac{y}{b}\right|^n\! = 1,</math>
where and are positive numbers referred to as semi-diameters or semi-axes of the superellipse, and is a positive parameter that defines the shape. When , the superellipse is an ordinary ellipse. For , the shape is more rectangular with rounded corners, and for , it is more pointed.
In the polar coordinate system, the superellipse equation is (the set of all points on the curve satisfy the equation):
<math display="block">r = \left(\left|\frac{\cos\theta}{a}\right|^n\!\! + \left|\frac{\sin\theta}{b}\right|^n\!\right)^{-\frac1n}\!.</math>
Specific cases
This formula defines a closed curve contained in the rectangle and . The parameters and are the semi-diameters or semi-axes of the curve. The overall shape of the curve is determined by the value of the exponent , as shown in the following table:
{| class="wikitable"
|-
|
| width="390px" | The superellipse looks like a four-armed star with concave (inwards-curved) sides.<br>For , in particular, each of the four arcs is a segment of a parabola.<br>An astroid is the special case ,
|thumb|200px|right|The superellipse with ,
|-
|
| The curve is a rhombus with corners and .
|
|-
|
| The curve looks like a rhombus with the same corners but with convex (outwards-curved) sides.<br>The curvature increases without limit as one approaches its extreme points.
|thumb|200px|right|The superellipse with ,
|-
|
| The curve is an ordinary ellipse (in particular, a circle if ).
|
|-
|
| The curve looks superficially like a rectangle with rounded corners.<br>The curvature is zero at the points and .
| thumb|200px|right|[[Squircle, the superellipse with , ]]
|}
CSS defines a function where , such that cases with are concave, defines a rhombus, are convex, and defines an ellipse.
If , the figure is also called a hypoellipse; if , a hyperellipse. When and , the superellipse is the boundary of a ball of in the -norm. The extreme points of the superellipse are and , and its four "corners" are , where (sometimes called the "superness").
Mathematical properties
When is a positive rational number (in lowest terms), then each quadrant of the superellipse is a plane algebraic curve of order . In particular, when and is an even integer, then it is a Fermat curve of degree . In that case it is non-singular, but in general it will be singular. If the numerator is not even, then the curve is pieced together from portions of the same algebraic curve in different orientations.
The curve is given by the parametric equations (with parameter having no elementary geometric interpretation)
<math display="block">\left.
\begin{align}
x\left(t\right) &= \plusmn a\cos^{\frac{2}{n t \\
y\left(t\right) &= \plusmn b\sin^{\frac{2}{n t
\end{align} \right\} \qquad 0 \le t \le \frac{\pi}{2} </math>
where each can be chosen separately so that each value of gives four points on the curve. Equivalently, letting range over ,
<math display="block">
\begin{align}
x\left(t\right) &= {\left|\cos t\right|}^{\frac{2}{n \cdot a \sgn(\cos t) \\
y\left(t\right) &= {\left|\sin t\right|}^{\frac{2}{n \cdot b \sgn(\sin t)
\end{align}
</math>
where the sign function is
<math display="block"> \sgn(w) = \begin{cases}
-1, & w < 0 \\
0, & w = 0 \\
+1, & w > 0 .
\end{cases}</math>
Here is not the angle between the positive horizontal axis and the ray from the origin to the point, since the tangent of this angle equals while in the parametric expressions
<math display="block">\frac{y}{x} = \frac{b}{a} (\tan t)^\frac2n \neq \tan t.</math>
Area
The area inside the superellipse can be expressed in terms of the gamma function as
<math display="block"> \text{Area} = 4 a b \frac{\left(\Gamma \left(1+\frac{1}{n}\right)\right)^2}{\Gamma \left(1+\frac{2}{n}\right)} , </math>
or in terms of the beta function as
<math display="block"> \text{Area} = \frac{4 a b}{n} \Beta\!\left(\frac{1}{n},\frac{1}{n}+1\right) . </math>
An alternative formula for area is
:<math>\text{Area} = 2^{1-\frac{2}{n\varpi_n a b,</math>
where <math display="inline">\varpi_n=2\int_0^1\frac{dr}{\sqrt{1-r^n</math> is the arc length of
the principal loop of the sinusoidal spiral
<math display="inline">r^{\frac{n}{2=\cos\left(\frac{n}{2}\theta\right)</math>.
Perimeter
The perimeter of a general superellipse, like that of an ellipse, cannot be expressed in terms of elementary functions. Exact solutions for the perimeter of a superellipse exist using infinite summations; these could be truncated to obtain approximate solutions. Numerical integration is another option to obtain perimeter estimates at arbitrary precision.
A closed-form approximation obtained via symbolic regression is also an option that balances parsimony and accuracy. Consider a superellipse centered on the origin of a two-dimensional plane. Now, imagine that the superellipse (with shape parameter ) is stretched such that the first quadrant (where , ) is an arc from to , with . Then, the arc length of the superellipse within that single quadrant is approximated as the following function of and :
:<code>h + (((((n - 0.88487077) * h + 0.2588574 / h) ^ exp(n / -0.90069205)) + h) + 0.09919785) ^ (-1.4812293 / n)</code>
This single-quadrant arc length approximation is accurate to within ±0.2% for across all values of , and can be used to efficiently estimate the total perimeter of a superellipse.
Pedal curve
The pedal curve is relatively straightforward to compute. Specifically, the pedal of
<math display="block">\left|\frac{x}{a}\right|^n\! + \left|\frac{y}{b}\right|^n\! = 1,</math>
is given in polar coordinates by
<math display="block">\left(a \cos \theta\right)^{\frac{n}{n-1+\left(b \sin \theta\right)^{\tfrac{n}{n-1=r^{\frac{n}{n-1.</math>
Generalizations
The generalization of these shapes can involve several approaches. The generalizations of the superellipse in higher dimensions retain the fundamental mathematical structure of the superellipse while adapting it to different contexts and applications.
Higher dimensions
The generalizations of the superellipse in higher dimensions retain the fundamental mathematical structure of the superellipse while adapting it to different contexts and applications.
- A superellipsoid extends the superellipse into three dimensions, creating shapes that vary between ellipsoids and rectangular solids with rounded edges. The superellipsoid is defined as the set of all points that satisfy the equation
<math display="block">\left|\frac{x}{a}\right|^n\!\! + \left|\frac{y}{b}\right|^n\! + \left|\frac{z}{c}\right|^n\! = 1</math>
where , and are positive numbers referred to as the semi-axes of the superellipsoid, and is a positive parameter that defines the shape.
- A hyperellipsoid is the -dimensional analogue of an ellipsoid (and by extension, a superellipsoid). It is defined as the set of all points that satisfy the equation
<math display="block">\left|\frac{x_1}{a_1}\right|^n\!\! + \left|\frac{x_2}{a_2}\right|^n\! +\cdots+ \left|\frac{x_d}{a_d}\right|^n\! = 1</math>
where are positive numbers referred to as the semi-axes of the hyperellipsoid, and is a positive parameter that defines the shape.
Different exponents
thumb|Variations of a superellipse with different exponents
Using different exponents for each term in the equation, allowing more flexibility in shape formation.
For the two-dimensional case the equation is
<math display="block">\left|\frac{x}{a}\right|^m\!\! + \left|\frac{y}{b}\right|^n\! = 1 \quad m,n>0</math>
where either equals or differs from . If , it is Lamé's superellipse. If , the curve possesses more flexibility of behavior, and is a better possible fit to describe some experimental information. While not a direct generalization of superellipses, hyperspheres also share the concept of extending geometric shapes into higher dimensions. These related shapes demonstrate the versatility and broad applicability of the fundamental principles underlying superellipses.
Anisotropic scaling
Anisotropic scaling involves scaling the shape differently along different axes, providing additional control over the geometry. This approach can be applied to superellipses, superellipsoids, and their higher-dimensional analogues to produce a wider variety of forms and better fit specific requirements in applications such as computer graphics, structural design, and data visualization. For instance, anisotropic scaling allows the creation of shapes that can model real-world objects more accurately by adjusting the proportions along each axis independently.
History
The general Cartesian notation of the form comes from the French mathematician Gabriel Lamé (1795–1870), who generalized the equation for the ellipse.
thumb|176px|The outer outlines of the letters 'o' and 'O' in [[Hermann Zapf|Zapf's Melior typeface are described by superellipses with ]]
Hermann Zapf's typeface Melior, published in 1952, uses superellipses for letters such as o.<!--Many web sites say Zapf actually drew the shapes of Melior by hand without knowing the mathematical concept of the superellipse, and only later did Piet Hein point out to Zapf that his curves were extremely similar to the mathematical construct, but these web sites do not cite any primary source of this account.--> Thirty years later Donald Knuth would build the ability to choose between true ellipses and superellipses (both approximated by cubic splines) into his Computer Modern type family.
thumb|The central fountain of Sergels Torg is outlined by a superellipse with and .
The superellipse was named by the Danish poet and scientist Piet Hein (1905–1996) though he did not discover it as it is sometimes claimed. In 1959, city planners in Stockholm, Sweden announced a design challenge for a roundabout in their city square Sergels Torg. Piet Hein's winning proposal was based on a superellipse with and . As he explained it:
thumb|The Local's logo, based on Stockholm's Sergels Torg, with the L representing the glass obelisk
Sergels Torg was completed in 1967. Meanwhile, Piet Hein went on to use the superellipse in other artifacts, such as beds, dishes, tables, etc. By rotating a superellipse around the longest axis, he created the superegg, a solid egg-like shape that could stand upright on a flat surface, and was marketed as a novelty toy.
In 1968, when negotiators in Paris for the Vietnam War could not agree on the shape of the negotiating table, Balinski, Kieron Underwood and Holt suggested a superelliptical table in a letter to the New York Times. in which the meridians are arcs of superellipses.
thumb|Estadio Azteca in Mexico
The logo for news company The Local consists of a tilted superellipse matching the proportions of Sergels Torg. Three connected superellipses are used in the logo of the Pittsburgh Steelers.
In computing, mobile operating system iOS uses a superellipse curve for app icons, replacing the rounded corners style used up to version 6.
See also
- Astroid, the superellipse with and , is a hypocycloid with four cusps.
- Deltoid curve, the hypocycloid of three cusps.
- Squircle, the superellipse with and , looks like "The Four-Cornered Wheel."
- Reuleaux triangle, "The Three-Cornered Wheel."
- Superformula, a generalization of the superellipse.
- Superquadrics: superellipsoids and supertoroids, the three-dimensional "relatives" of superellipses.
- Superelliptic curve, equation of the form .
- spaces
References
External links
- "Lamé Curve" at MathCurve.
- "Super Ellipse" on 2dcurves.com
- Superellipse Calculator & Template Generator
- Superellipse fitting toolbox in MATLAB
- C code for fitting superellipses
