function[meter, hight] = ballBounce(hight_q,times)
hight = hight_q/2^times;
meter = 0;
if (times > 1)
meter = meter + hight_q;
end
times=times-1;
while(times-2 > 0)
meter=meter + 2*(hight_q/2);
hight_q = hight_q / 2;
times=times-2;
end
meter=meter + hight_q / 2;
end
x=[-2*pi:0.1*pi:2*pi];
y=cos(tan(pi*x));
plot(x,y)
fplot(@(x)cos(tan(pi*x)))
x=linspace(-100,100);
y1=x.^2;
y2=x.^3;
y3=x.^4;
y4=x.^5;
plot(x,y1,x,y2,x,y3,x,y4);
legend({'y1=x.^2','y2=x.^3','y3=x.^4','y4=x.^5'},'Location','southwest')