Commit 9f046bdf authored by Manuel Günther's avatar Manuel Günther
Browse files

Next trial to track the infinite loop on Travis.

parent ef8695ca
......@@ -232,9 +232,11 @@ struct unit_normal_distribution
RealType generate_tail(Engine& eng) {
boost::exponential_distribution<RealType> exponential;
const RealType tail_start = RealType(normal_table<double>::table_x[1]);
std::cout << "Enter" << std::endl;
for(;;) {
RealType x = exponential(eng)/tail_start;
RealType y = exponential(eng);
std::cout << "x = " << x << "; y = " << y << std::endl;
if(2*y > x*x) return x + tail_start;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment