Monte Carlo Codes

Demo codes - integral of

\begin{displaymath}
I = \int ( x - \frac{1}{4} )^2 \exp( - \frac{1}{2} x^2 )
\end{displaymath}

  1. by Trapezoidal Rule int_trap.c

  2. Monte Carlo Method int_mc.c

  3. and Guided Monte Carlo Method int_guided_mc.c

Ising Model solution: ising.c



Michel Vallieres 2014-04-01