Search for question
Question

4. A superellipse is defined by the inequality \left|\frac{x}{a}\right|^{n}+\left|\frac{y}{b}\right|^{n} \leq 1, where x and y are the Cartesian coordinates, and a and b are the length of long and short

axes with n > 2 the deformation parameter. An example of a superellipse centered at ro with a =2, b = 1 and n = 2.5 is shown in the figure below, where e, and e, are the unit vectors pointing to the direction of long and short axes, respectively, and exey.. All vectors here are column vectors. Use Matlab toolbox numerically to calculate the area S of a superellipse for given a and b. Fora = 2, b = 1, plot S as a function of n € [2,10], and compare your result with the analytical formula S=\frac{4^{1-\frac{1}{n}} a b \sqrt{\pi} \Gamma\left(1+\frac{1}{n}\right)}{\Gamma\left(\frac{1}{2}+\frac{1}{n}\right)} where I'() is the Gamma function.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7