cot
Cotangent of an angle given in radians.
Category: Mathematics > Elementary Math
Syntax
Y = cot(X)
Returns the cotangent of each element of X, in radians.
Description
cot(x) is 1 ./ tan(x), or cos(x) ./ sin(x). It is periodic with period pi and large near multiples of pi, where the sine vanishes. cot(pi/4) is 1.
Input arguments
X- Numeric array of any size. Complex values are allowed.
Output arguments
Y- Array of the same size as
X.
Example
Cotangent
cot([pi/4 pi/2 pi/6])
Output
ans = 1×3
1.0000 0.0000 1.7321