WIP¶
Example of what Mkdocs can do:
Computational Projects¶
Monte Carlo Integration¶
Here is a comparison of how I implemented a simple Monte Carlo integration in both Python and C++.
Pi is approx: 3.14159...
The convergence rate scales as \(1/\sqrt{N}\).
code annotation
def lagrangian(phi, dphi):
kinetic = 0.5 * dphi**2 # (1)
potential = 0.5 * m**2 * phi**2 # (2)
return kinetic - potential
2. This is the mass term