For mathematical computation, comparison of LaTeX output is useful. Here is an example:


```python
import sympy
sympy.init_printing()
x, y = sympy.symbols(["x", "y"])
```

Should pass:


```python
x**2
```


```python
import random
n = int(random.uniform(1, 10000000000000))
```

The next cell nbval evalution should fail (in most cases), so we exclude this cell from the comparison with the `#NBVAL_IGNORE_OUTPUT` token:


```python
# NBVAL_IGNORE_OUTPUT
x**n
```

This addresses issue https://github.com/computationalmodelling/nbval/issues/27 .

25042f2963ad83ed802c096be23521df90de4ae8
ipynb
Jupyter Notebook
tests/latex-example.ipynb
mscuthbert/nbval
bffd020da81bb7ea2c417011f878eeceee1ebb63
BSD-3-Clause
2019-08-26T02:25:53.000Z
2022-03-15T12:58:13.000Z
tests/latex-example.ipynb
mscuthbert/nbval
bffd020da81bb7ea2c417011f878eeceee1ebb63
BSD-3-Clause
2017-10-11T12:12:55.000Z
2017-10-11T12:12:55.000Z
tests/latex-example.ipynb
mscuthbert/nbval
bffd020da81bb7ea2c417011f878eeceee1ebb63
BSD-3-Clause
2021-02-22T18:57:21.000Z
2021-02-22T18:58:20.000Z
Qwen/Qwen-72B
1. YES
2. YES

