X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/blobdiff_plain/0f8b9f29fdcc92049803e88be1c9524d6d0d6fab..2845de363d157f4e7b3ad37c4d4b13a8d77bf449:/sim-1mr.hpp?ds=inline diff --git a/sim-1mr.hpp b/sim-1mr.hpp index beadd7d..d03ef22 100644 --- a/sim-1mr.hpp +++ b/sim-1mr.hpp @@ -54,7 +54,7 @@ void sim::updatePhi (const int& x) + 2 * real( conf[x].phi * conj(V) ) ); conf[x].phi = sqrt(std::log( 1./(1-r) )) / sqrt(M) - * complex( cos(theta), sin(theta) ) + * polar(1.0, theta) + V / M; }