[Bug libstdc++/57674] wrong distribution for std::binomial_distribution::operator()(g,param)
schlaffi at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Sat Jun 22 16:40:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57674
--- Comment #2 from schlaffi at users dot sourceforge.net ---
Created attachment 30338
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30338&action=edit
corrected version of the example file
sorry, forgot one line, the output should be
distribution 1: p = 0.8, f = 0.798828
distribution 2: p = 0.3, f = 0.206055
(bad) vs.
distribution 1: p = 0.8, f = 0.793945
distribution 2: p = 0.3, f = 0.308594
(good)
More information about the Gcc-bugs
mailing list