X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/blobdiff_plain/0f8b9f29fdcc92049803e88be1c9524d6d0d6fab..1e40554e2ce173b9f7be0734cfef969782cd3c78:/sim-r.hpp?ds=sidebyside diff --git a/sim-r.hpp b/sim-r.hpp index 0cbce5e..c3b6888 100644 --- a/sim-r.hpp +++ b/sim-r.hpp @@ -51,7 +51,7 @@ void sim::updatePhi (const int& x) V += conf[ (*nb)[x*4+nu] ].phi; conf[x].phi = sqrt(std::log( 1./(1-r) )) / sqrt(M) - * complex( cos(theta), sin(theta) ) + * polar(1.0, theta) + V / M; }