X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/blobdiff_plain/0f8b9f29fdcc92049803e88be1c9524d6d0d6fab..a70bf950d14902f91ae0c0e4027537a7e23d3bc5:/sim-1mr.hpp?ds=sidebyside 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; }