MATLAB Function Reference |
Cotangent and hyperbolic cotangent
Syntax
Y = cot(X) Y = coth(X)
Description
The cot
and coth
functions operate element-wise on arrays. The functions' domains and ranges include complex values. All angles are in radians.
Y = cot(X)
returns the cotangent for each element of X.
returns the hyperbolic cotangent for each element of Y = coth(X)
X.
Examples
Graph the cotangent and hyperbolic cotangent over the domains and
x1 = -pi+0.01:0.01:-0.01; x2 = 0.01:0.01:pi-0.01; plot(x1,cot(x1),x2,cot(x2)) plot(x1,coth(x1),x2,coth(x2))
Algorithm
See Also
cos, cosh | cov |