arctan magic