arctan(z) is equal to i ⁄ 2 × ln((1 + z × i) ⁄ (1 − z × i)) since tan(φ) = − i × tanh(i × φ). (Of course, you can get this directly, but as its hyperbolic counterpart is better known and more useful, this is the simplest way.)