Calculate the inverse tangent (a.k.a. arctan) of the reciprocal of all integers from 1 to 1000. Hint: take a look at the ?Trig help page to find the inverse tangent function. You don’t need a function to calculate reciprocals.

(from: Cotton 2013, Learning R, O’Reilly)