an interative (rather than recursive) version of the deflection angle calculation