def haliley alpha if alpha or alpha pi print Bad angle return return t

1
2
3
4
5
def haliley(v, alpha):
if alpha <= 0 or alpha >= pi/2:
print("Bad angle")
return .0
return (tan(alpha)*2*(v**2)*cos(alpha)**2)/g