X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/blobdiff_plain/0f8b9f29fdcc92049803e88be1c9524d6d0d6fab..1e40554e2ce173b9f7be0734cfef969782cd3c78:/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; }