Your squares are wrong

The other day there was an article devoted to the difference between a square with rounded edges and a "square circle" - an intermediate figure between a circle and a square, obtained from the superellipse formula . Readers' opinions were divided - not everyone saw the difference, and who saw - not everyone preferred the "correct" option. And I suspect why: those squares of yours are not real!









Alternative solution



Prerequisites
( ), β€” . , , . , . n 1 2 , n 2 , . , n , , n . 5? 10? 1000? n .



, .



, .


My solution (in polar coordinates) turned out like this:



ρ=21+1+(1k4-2k2)sin2⁑(2Ο•)



in which parameter kfrom 0 to 1 sets the degree of "squaring", and linearly - defining the point of intersection ( k , k ) of the figure with the diagonal. This means that we can uniquely define our square circle through 3 points. And yes, withk=1we have a real square, with straight sides and sharp corners. Well, the circle, respectively, is obtained whenk=12(cosine 45 Β°). Variants of the resulting figures are reflected on the KDPV.



You can also note that this formula does not have such tricks as modulus functions, sign / discard, and so on - as is required for a superellipse. Everything is fair, only standard mathematical functions, with which there will be no difficulty in differentiating or integrating. By the way, about integration - if you wish, you can also find the area of ​​these figures (via elliptic integrals):



4k4E(2k2-1k4)-4(k2-1)2K(2k2-1k4)2k2-1

Note
β€” , , sin cos. .





Development



You can add more variation to the resulting shapes. For example, like this:



ρ=1+(z-2)2z21+1+(1k4-2k2)sin2⁑(2Ο•)+(4(1-z)z2)cos2⁑(2Ο•)



Here we have one more parameter z , which allows us to distort the figure without violating the ideology of construction. With its help, you can bring our figure closer to the superellipse (shown in yellow on the graphs). For example, for n = 4 ( k = 0.266, z = 0.1), the match is almost perfect:







at higher n, the difference is already more noticeable ( n = 5, k = 0.6, z = 0.48):







n = 10, k = 0.942, z = 1.02:





And yes, you can go in a completely radical way! This icon design certainly cannot be confused with anything:







Well, you can also dream up a little with animation:







Conclusion



If a certain designer of a certain company with (optionally) a fruit logo wants to get a unique design, even if it does not differ fundamentally from existing solutions, perhaps it is worth trying to look for and patent a really new formula, and not attract a long-known solution by hanging tons of marketing bullets on it ... Especially if it can be done just for fun by a simple person from the provinces without special education.



PS Sources of the article are here .



PPS Through the equation of the curve in Cartesian coordinates, the original formula will look like

0=-2+(x2+y2)(1+1+(4-8k2)x2y2k4(x2+y2)2)




All Articles