## Appendix A: Writing Mathematical Expressions with LaTeX

LaTeX is extensively used in Python. In this appendix there are many examples that can be useful to represent LaTeX expressions inside Python implementations. This same information can be found at the link
http://matplotlib.org/users/mathtext.html
.

###
With matplotlib

You can enter the LaTeX expression directly as an argument of various functions that can accept it. For example, the title() function that draws a chart title.

import matplotlib.pyplot as plt

%matplotlib inline

plt.title(r'$\alpha > \beta$')

###
With IPython Notebook in a Markdown
Cell

You can enter the LaTeX expression between two '$$'.

$$c = \sqrt{a^2 + b^2}$$

###
With IPython Notebook in a Python 2
Cell

You can enter ...