The superformula is a generalization of the superellipse and was proposed by Johan Gielis in 2003. Gielis suggested that the formula can be used to describe many complex shapes and curves that are found in nature. Gielis has filed a patent application related to the synthesis of patterns generated by the superformula, which expired effective 2020-05-10. In polar coordinates, with r {\displaystyle r} the radius and φ {\displaystyle \varphi } the angle, the superformula is:
r ( φ ) = ( | cos ( m φ 4 ) a | n 2 + | sin ( m φ 4 ) b | n 3 ) − 1 n 1 . {\displaystyle r\left(\varphi \right)=\left(\left|{\frac {\cos \left({\frac {m\varphi }{4}}\right)}{a}}\right|^{n_{2}}+\left|{\frac {\sin \left({\frac {m\varphi }{4}}\right)}{b}}\right|^{n_{3}}\right)^{-{\frac {1}{n_{1}}}}.}
By choosing different values for the parameters a , b , m , n 1 , n 2 , {\displaystyle a,b,m,n_{1},n_{2},} and n 3 , {\displaystyle n_{3},} different shapes can be generated. The formula was obtained by generalizing the superellipse, named and popularized by Piet Hein, a Danish mathematician.
2D plots In the following examples the values shown above each figure should be m, n1, n2 and n3.
A GNU Octave program for generating these figures
Extension to higher dimensions It is possible to extend the formula to 3, 4, or n dimensions, by means of the spherical product of superformulas. For example, the 3D parametric surface is obtained by multiplying two superformulas r1 and r2. The coordinates are defined by the relations:
x = r 1 ( θ ) cos θ ⋅ r 2 ( ϕ ) cos ϕ , {\displaystyle x=r_{1}(\theta )\cos \theta \cdot r_{2}(\phi )\cos \phi ,}
y = r 1 ( θ ) sin θ ⋅ r 2 ( ϕ ) cos ϕ , {\displaystyle y=r_{1}(\theta )\sin \theta \cdot r_{2}(\phi )\cos \phi ,}
z = r 2 ( ϕ ) sin ϕ , {\displaystyle z=r_{2}(\phi )\sin \phi ,}
where ϕ {\displaystyle \phi } (latitude) varies between −π/2 and π/2 and θ (longitude) between −π and π.
3D plots 3D superformula: a = b = 1; m, n1, n2 and n3 are shown in the pictures.
A GNU Octave program for generating these figures:
Generalization The superformula can be generalized by allowing distinct m parameters in the two terms of the superformula. By replacing the first parameter m {\displaystyle m} with y and second parameter m {\displaystyle m} with z:
… excerpt ends here. Continue reading the full article.






