cotd

Returns the cotangent for each element of the argument (in degrees).

Syntax

R = cotd(a)

Inputs

a
The angle in degrees.
Dimension: scalar | vector | matrix

Outputs

R
scalar | vector | matrix

Examples

Scalar input:
R = cotd(60)
R = 0.577350269
Matrix input:
R = cotd([60, -45; -30, 90])
R = [Matrix] 2 x 2
  0.57735  -1.00000
 -1.73205   0.00000