# \evaluated

Marks evaluation of an expression at bounds, especially in calculus or physics notation such as applying |_a^b to an antiderivative or intermediate result.

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

## Metadata

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

## Syntax

### physics

Argument specification: `s d<(,|><[,|><{,}>`

Marks evaluation of an expression at bounds, especially in calculus or physics notation such as applying |_a^b to an antiderivative or intermediate result.

## Examples

```latex
\evaluated_0^1
```

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

```latex
\evaluated*{x}_0^1
```

[Open in Playground](https://play.texform.dev/?input=%5Cevaluated*%7Bx%7D_0%5E1)

```latex
\evaluated(y|_0^1
```

[Open in Playground](https://play.texform.dev/?input=%5Cevaluated%28y%7C_0%5E1)

```latex
\evaluated*[z|_0^1
```

[Open in Playground](https://play.texform.dev/?input=%5Cevaluated*%5Bz%7C_0%5E1)

## 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.

### Expands to (physics)

```latex
\evaluated{#1}
```

→

```latex
\left.#1\vphantom{\int}\right|
```

The source also rewrites the bare form to \left.\vphantom{\int}\right|, and the starred braced form uses \smash{#1}. The ( ... | and [ ... | forms are handled via an auto-open stack item rather than string replacement.

### [physics/evaluated-to-eval](https://texform.dev/rules/physics/evaluated-to-eval)

Collapse evaluated to the shorter eval helper before eval expansion.

Level: authoring. Fidelity: render.

```latex
\evaluated{#1}#2
```

→

```latex
\eval{#1}#2
```

```latex
I=\evaluated{F(x)}_{a}^{b}
```

→

```latex
I=\eval{F(x)}_{a}^{b}
```

## Equivalent forms

```latex
\eval{#1}
```

exact. Alias from the same physics command map; the same bare, starred, braced, and ( ... | / [ ... | forms apply after replacing the command name.

## See also

- [\\eval](https://texform.dev/latex/commands/eval)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \evaluated | Positive: baseline | Pass | Fail | Pass |
| \evaluated* | Positive: vary:s[0] | Pass | Fail | Pass |
| \evaluated (a\| | Positive: vary:d[1] | Pass | Fail | Pass |
| \evaluated*(a\| | Positive: maximal | Pass | Fail | Pass |
