# \cosine

Alternate physics-package name for the cosine function in formulas

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

## Metadata

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

## Syntax

### physics

Argument specification: ``

Alternate physics-package name for the cosine function in formulas

## Examples

```latex
\cosine
```

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

## 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/cosine-to-cos](https://texform.dev/rules/physics/cosine-to-cos)

Collapse a bare cosine helper to the standard cos operator.

Level: authoring. Fidelity: render.

```latex
\cosine
```

→

```latex
\cos
```

```latex
E(t)=E_0\cosine\omega t
```

→

```latex
E(t)=E_0\cos\omega t
```

### [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)
```

## Equivalent forms

```latex
\cos
```

exact. 

## See also

- [\\acosecant](https://texform.dev/latex/commands/acosecant)
- [\\acosine](https://texform.dev/latex/commands/acosine)
- [\\acotangent](https://texform.dev/latex/commands/acotangent)
- [\\arccos](https://texform.dev/latex/commands/arccos)
- [\\arccosecant](https://texform.dev/latex/commands/arccosecant)
- [\\arccosine](https://texform.dev/latex/commands/arccosine)
- [\\arccotangent](https://texform.dev/latex/commands/arccotangent)
- [\\arcsecant](https://texform.dev/latex/commands/arcsecant)
- [\\arcsin](https://texform.dev/latex/commands/arcsin)
- [\\arcsine](https://texform.dev/latex/commands/arcsine)
- [\\arctan](https://texform.dev/latex/commands/arctan)
- [\\arctangent](https://texform.dev/latex/commands/arctangent)
- [\\arg](https://texform.dev/latex/commands/arg)
- [\\asecant](https://texform.dev/latex/commands/asecant)
- [\\asine](https://texform.dev/latex/commands/asine)
- [\\atangent](https://texform.dev/latex/commands/atangent)
- [\\cos](https://texform.dev/latex/commands/cos)
- [\\cosecant](https://texform.dev/latex/commands/cosecant)
- [\\cosh](https://texform.dev/latex/commands/cosh)
- [\\cot](https://texform.dev/latex/commands/cot)
- [\\cotangent](https://texform.dev/latex/commands/cotangent)
- [\\coth](https://texform.dev/latex/commands/coth)
- [\\csc](https://texform.dev/latex/commands/csc)
- [\\deg](https://texform.dev/latex/commands/deg)
- [\\determinant](https://texform.dev/latex/commands/determinant)
- [\\dim](https://texform.dev/latex/commands/dim)
- [\\exp](https://texform.dev/latex/commands/exp)
- [\\exponential](https://texform.dev/latex/commands/exponential)
- [\\hom](https://texform.dev/latex/commands/hom)
- [\\hypcosecant](https://texform.dev/latex/commands/hypcosecant)
- [\\hypcosine](https://texform.dev/latex/commands/hypcosine)
- [\\hypcotangent](https://texform.dev/latex/commands/hypcotangent)
- [\\hypsecant](https://texform.dev/latex/commands/hypsecant)
- [\\hypsine](https://texform.dev/latex/commands/hypsine)
- [\\hyptangent](https://texform.dev/latex/commands/hyptangent)
- [\\ker](https://texform.dev/latex/commands/ker)
- [\\lg](https://texform.dev/latex/commands/lg)
- [\\ln](https://texform.dev/latex/commands/ln)
- [\\log](https://texform.dev/latex/commands/log)
- [\\logarithm](https://texform.dev/latex/commands/logarithm)
- [\\naturallogarithm](https://texform.dev/latex/commands/naturallogarithm)
- [\\Probability](https://texform.dev/latex/commands/Probability)
- [\\rank](https://texform.dev/latex/commands/rank)
- [\\sec](https://texform.dev/latex/commands/sec)
- [\\secant](https://texform.dev/latex/commands/secant)
- [\\sin](https://texform.dev/latex/commands/sin)
- [\\sine](https://texform.dev/latex/commands/sine)
- [\\sinh](https://texform.dev/latex/commands/sinh)
- [\\tan](https://texform.dev/latex/commands/tan)
- [\\tangent](https://texform.dev/latex/commands/tangent)
- [\\tanh](https://texform.dev/latex/commands/tanh)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \cosine | Positive: baseline | Pass | Fail | Pass |
