This code computes a numerical approximation to the quantum field theory of a 2-d massive scalar field with phi^4 interaction.
The analysis makes use of Sage (http://www.sagemath.org), I'm assuming that you have it installed and it can be called with "sage" on the command line.w
-
Download this code.
-
Compile inside the Sage shell:
sage -sh -c make
-
Start Sage and
import phi4
. Or, for a more elaborate example:sage: load('phase_plot.py')