Accelerating the pace of engineering and science

• Trials

# acosd

Inverse cosine in degrees

• Y = acosd(X)

## Description

Y = acosd(X) returns the inverse cosine of the elements of X in degrees.

## Examples

expand all

### Inverse Cosine of Zero

Verify that inverse cosine of 0 is exactly 90.

`acosd(0)`
```ans =

90```

### Round Trip Calculation for Complex Angles

Show that inverse cosine, followed by cosine, returns the original values of X.

```cosd(acosd([2 3]))
```
```ans =

2.0000    3.0000```

acosd([2 3]) returns two complex angles, which are then passed to the cosd function. cosd returns the original values, 2 and 3.

## Input Arguments

expand all

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

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