I would like to plot this function:
$\sqrt[\gamma]{(\frac{x}{a})^{\gamma}+(\frac{y}{b})^{\gamma}}=\mu \,$ where $\, \gamma, a,b\in \mathbb{R} \,$ and $\, \mu \in \mathbb{Z}$
I have tried to plot this function in MATLAB considering $\gamma=0.43$, $ a=0.2$, $b=0.55$, $\mu=2$, but it looks so ugly. I am wonder if my method is correct. Here is what I do:
First) Rearrange the equation .
Second) Plot it with a simple code:
$y=\pm b\times\sqrt[{\gamma}]{{\mu^{\gamma}-(\frac{x}{a})^{\gamma}}}$
Here is a code I use in MATLAB to plot this function:
g=0.2; a =0.4; b=0.6; m=1;
x= - a*m :0.01: a*m;
y= +b*(m^g-(x/a).^g).^(1/g);
yy= -b*(m^g-(x/a).^g).^(1/g);
plot(x,y,x,yy)
The result should be a nice closed shape called superellipse. But it is not.
Is what I've done mathematically correct?
