Accelerating the pace of engineering and science

# Documentation Center

• Trial Software

# acotd

Inverse cotangent in degrees

## Description

example

Y = acotd(X) returns the inverse cotangent of the elements of X in degrees.

## Examples

expand all

### Inverse Cotangent of Vector

```x = [0 20 Inf];
y = acotd(x)
```
```y =

90.0000    2.8624         0```

The acotd operation is element-wise when you pass a vector, matrix, or N-D array.

### Inverse Cotangent of Complex Value

```acotd(1+i)
```
```ans =

31.7175 -23.0535i```

## Input Arguments

expand all

### X — Cotangent of anglescalar value | vector | matrix | N-D array

Cotangent of angle, specified as a real-valued or complex-valued scalar, vector, matrix, or N-D array. The acotd operation is element-wise when X is nonscalar.

Data Types: single | double
Complex Number Support: Yes

## Output Arguments

expand all

### Y — Angle in degreesscalar value | vector | matrix | N-D array

Angle in degrees, returned as a real-valued or complex-valued scalar, vector, matrix, or N-D array of the same size as X.