import matplotlib.pyplot as plt
from math import sin, cos, pi

def sgn(x):
	return ((x>0)-(x<0))*1

a,b,n=200,200,2.5 
na=2/n
step=100 
piece=(pi*2)/step
xp=[];yp=[]

t=0
for t1 in range(step+1):
	
	x=(abs((cos(t)))**na)*a*sgn(cos(t))
	y=(abs((sin(t)))**na)*b*sgn(sin(t))
	xp.append(x);yp.append(y)
	t+=piece

plt.plot(xp,yp) 
plt.title(+str(n))
plt.show()