PDF version of the Mathematica code