MATLAB Function Reference |
Inverse cotangent and inverse hyperbolic cotangent
Syntax
Y = acot(X) Y = acoth(X)
Description
The acot
and acoth
functions operate element-wise on arrays. The functions' domains and ranges include complex values. All angles are in radians.
Y = acot(X)
returns the inverse cotangent (arccotangent) for each element of X.
Y = acoth(X)
returns the inverse hyperbolic cotangent for each element of X.
Examples
Graph the inverse cotangent over the domains and and the inverse hyperbolic cotangent over the domains
and
x1 = -2*pi:pi/30:-0.1; x2 = 0.1:pi/30:2*pi; plot(x1,acot(x1),x2,acot(x2)) x1 = -30:0.1:-1.1; x2 = 1.1:0.1:30; plot(x1,acoth(x1),x2,acoth(x2)
)
Algorithm
See Also
acos, acosh | acsc, acsch |