Inverse cotangent in radians
Y = acot(X)
The acot function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.
Graph the inverse cotangent over the domains –2π ≤ x < 0 and 0 < x ≤ 2π.
x1 = -2*pi:pi/30:-0.1; x2 = 0.1:pi/30:2*pi; plot(x1,acot(x1),x2,acot(x2)), grid on