Mabl

Strange programming and other stuff

Monte Carlo Simulation

Monte Carlo Simulation is basically just trying.

Here i place a random dot in a unity square and check if the distance to the lower left corner is less than one, essentially creating a quater of a circle. This is a simple way of approximating Pi.

(1)    \begin{equation*} \pi\approx\frac{\text{dots less than 1 from the lower left corner}}{\text{total dots}}\cdot 4 \end{equation*}