MATLAB Function Reference | Search  Help Desk |
cot, coth | Examples See Also |
Cotangent and hyperbolic cotangent
Y = cot(X) Y = coth(X)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.
Y = coth(X)
returns the hyperbolic cotangent for each element of X.
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))
acot
, acoth
Inverse cotangent and inverse hyperbolic cotangent