(cot(x)-1) for -2pi <= x <= 2pi