derive the formula

v0=sqrt((deltaX)squared)*g)/2*deltaY