This master thesis presents a collection of tools for solving partialdifferential equations using Python. Three different Python modulesmake up the majority of the thesis.
When solving partial differential equations using the finitedifference method, the resulting code can get quite complicated, forinstance when trying to solve a 3D wave equation with a variablediffusion coefficient. Fdmgen is a Python module that helps solvingsuch equations by generating the code for the difference schemes basedon keyword arguments. The code that is output from Fdmgen supportsseveral programming languages.
Ptex2tex is a tool developed for simplifying writing documents basedon your research. By dynamically including source code, figures, andthe result of running computer programs on the commandline, we avoidhaving to do this work manually, with the errors often resulting fromsuch manual work. Ptex2tex generates LaTeX environments based onconfiguration files and keywords in the text.
Latexslides allows you to generate presentation slides using Python.It supports several backends, currently Prosper LaTeX, Beamer LaTeX,and HTML. Additional backends can be added as they become available.The LaTeX code is generated by using instances of various Pythonclasses, requiring the knowledge of programming Python.