Accelerating the pace of engineering and science

# Documentation Center

• Trial Software

# atand

Inverse tangent in degrees

## Description

example

Y = atand(X) returns the inverse tangent of the elements of X in degrees.

## Examples

expand all

### Inverse Tangent of Vector

```x = [-50 -20 0 20 50];
y = atand(x)
```
```y =

-88.8542  -87.1376         0   87.1376   88.8542```

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

### Inverse Tangent of Complex Value

```atand(10+i)
```
```ans =

84.3450 + 0.5618i
```

## Input Arguments

expand all

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

Tangent of angle, specified as a real-valued or complex-valued scalar, vector, matrix, or N-D array. The atand 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.