$${s = \frac {p^2} {g} sin(2 \theta) + \frac {2pr} {g} sin(\theta)}$$