# \atan

Used for inverse tangent notation written as atan, including optional bracketed powers in the physics package.

https://texform.dev/latex/commands/atan

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Physics: functions](https://texform.dev/latex/topics/physics-functions) |
| Packages | physics |
| Allowed mode | math |
| Tags |  |
| Commonality | medium |
| Kind | prefix |

## Syntax

### physics

Argument specification: `o d()`

Used for inverse tangent notation written as atan, including optional bracketed powers in the physics package.

## Examples

```latex
\atan x
```

[Open in Playground](https://play.texform.dev/?input=%5Catan+x)

```latex
\atan[2](x)
```

[Open in Playground](https://play.texform.dev/?input=%5Catan%5B2%5D%28x%29)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| physics | full | none | full |

## In TeXForm

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

### [physics/named-fn-to-operatorname](https://texform.dev/rules/physics/named-fn-to-operatorname)

Rewrite physics-only named functions to operatorname and expand their auto-sized arguments.

Level: faithful. Fidelity: reading.

```latex
\asin
```

→

```latex
\operatorname{asin}
```

```latex
\asin[2](x(y+z)\frac{a}{b})
```

→

```latex
\operatorname{asin}^{2}\left(x(y+z)\frac{a}{b}\right)
```

## See also

- [\\acos](https://texform.dev/latex/commands/acos)
- [\\acot](https://texform.dev/latex/commands/acot)
- [\\acsc](https://texform.dev/latex/commands/acsc)
- [\\arccos](https://texform.dev/latex/commands/arccos)
- [\\arccot](https://texform.dev/latex/commands/arccot)
- [\\arccsc](https://texform.dev/latex/commands/arccsc)
- [\\arcsec](https://texform.dev/latex/commands/arcsec)
- [\\arcsin](https://texform.dev/latex/commands/arcsin)
- [\\arctan](https://texform.dev/latex/commands/arctan)
- [\\asec](https://texform.dev/latex/commands/asec)
- [\\asin](https://texform.dev/latex/commands/asin)
- [\\cos](https://texform.dev/latex/commands/cos)
- [\\cosh](https://texform.dev/latex/commands/cosh)
- [\\cot](https://texform.dev/latex/commands/cot)
- [\\coth](https://texform.dev/latex/commands/coth)
- [\\csc](https://texform.dev/latex/commands/csc)
- [\\csch](https://texform.dev/latex/commands/csch)
- [\\det](https://texform.dev/latex/commands/det)
- [\\erf](https://texform.dev/latex/commands/erf)
- [\\exp](https://texform.dev/latex/commands/exp)
- [\\ln](https://texform.dev/latex/commands/ln)
- [\\log](https://texform.dev/latex/commands/log)
- [\\Pr](https://texform.dev/latex/commands/Pr)
- [\\sec](https://texform.dev/latex/commands/sec)
- [\\sech](https://texform.dev/latex/commands/sech)
- [\\sin](https://texform.dev/latex/commands/sin)
- [\\sinh](https://texform.dev/latex/commands/sinh)
- [\\tan](https://texform.dev/latex/commands/tan)
- [\\tanh](https://texform.dev/latex/commands/tanh)
- [\\tr](https://texform.dev/latex/commands/tr)
- [\\Tr](https://texform.dev/latex/commands/Tr)
- [\\trace](https://texform.dev/latex/commands/trace)
- [\\Trace](https://texform.dev/latex/commands/Trace)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \atan | Positive: baseline | Pass | Fail | Pass |
| \atan[a] | Positive: vary:o[0] | Pass | Fail | Pass |
| \atan (a) | Positive: vary:d[1] | Pass | Fail | Pass |
| \atan[a](b) | Positive: maximal | Pass | Fail | Pass |
