Fix rounding errors for [a]tan, add support for [a]cot.