The equation for the distance traveled by a projectile being affected by gravity is sin(2θ)v2/g, where θ is the angle, v is the initial velocity and g is acceleration due to gravity. Assuming that v2/g is constant, the greatest distance will be when sin(2θ) is at its maximum, which is when 2θ = 90 degrees. This means θ = 45 degrees. Read more