Template for code highlighting with minted in LaTeX beamer

Syntax highlighting can be achieved in LaTeX via listings or more recently with minted. The latter package uses Pygments to create beautiful code highlighting and includes fantastic additional features such as line numbering.

 

Comparing the Euler, Midpoint and Runge-Kutta method

To find an approximate solution to the initial value problem

$$ \begin{align} y'(t) &= f(t,y(t)), \\ y(t_0) &= y_0 \end{align} $$

we compare three different methods: The Euler method, the Midpoint method and Runge-Kutta method. The accuracy of the solutions we obtain through the
different methods depend on the given step size.