# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

# acot

Inverse cotangent in radians

## Syntax

``Y = acot(X)``

## Description

example

````Y = acot(X)` returns the Inverse Cotangent (cot-1) of the elements of `X`. The `acot` function operates element-wise on arrays. For real elements of `X`, `acot(X)` returns values in the interval `[-pi/2,pi/2]`. For complex values of `X`, `acot(X)` returns complex values. All angles are in radians.```

## Examples

collapse all

`acot(2.6)`
```ans = 0.3672 ```

Find the inverse cotangent of the elements of vector `x`. The `acot` function acts on `x` element-wise.

```x = [0.5i 1+3i -2.2+i]; Y = acot(x)```
```Y = 1.5708 - 0.5493i 0.1093 - 0.3059i -0.3689 - 0.1506i ```

Plot the inverse cotangent function over the intervals and .

```x1 = -2*pi:pi/30:-0.1; x2 = 0.1:pi/30:2*pi; plot(x1,acot(x1),'b') hold on plot(x2,acot(x2),'b') grid on```

## Input Arguments

collapse all

Numeric input, specified as a number, vector, matrix, or multidimensional array.

Data Types: `single` | `double`
Complex Number Support: Yes

## More About

collapse all

### Inverse Cotangent

The inverse cotangent is defined as

`${\mathrm{cot}}^{-1}\left(z\right)={\mathrm{tan}}^{-1}\left(\frac{1}{z}\right).$`

## See Also

#### Introduced before R2006a

Was this topic helpful?

#### The Manager's Guide to Solving the Big Data Conundrum

Download white paper