solve a=U*x* cos(y) and h=U*x*sin(y)-0.5*9.81*x^2