tan(x/2-pi/2)