cot
Returns the cotangent for each element of the argument (in radians).
Syntax
R = cot(a)
Inputs
Scalar input- a
- The angle in radians.
Outputs
- R
- scalar | vector | matrix
Examples
Scalar
input:
R = cot(pi/3)
R = 0.577350269
Matrix
input:
R = cot([pi/6, -pi/4; -pi/3, pi/2])
R = [Matrix] 2 x 2
1.73205e+00 -1.00000e+00
-5.77350e-01 6.12323e-17