solve t*sqrt(h^2-t^2/4)+at-0.5*a*h=0 for variable t