Maple lstlisting.
Made most equations in the style of $$ math $$.