Talk:Percolation/Bond percolation: Difference between revisions

Content added Content deleted
Line 15: Line 15:
: I added the error note, but somehow the reason part of the template doesn't show. It's this: at p=.5, the result should be somewhere around .5 too, but the D code gives 0.14. Given that it's the average of 10000 runs, it's impossible that that was a random fluctuation, so there's got be a bug in the code. --[[User:Ledrug|Ledrug]] ([[User talk:Ledrug|talk]]) 03:39, 6 March 2014 (UTC)
: I added the error note, but somehow the reason part of the template doesn't show. It's this: at p=.5, the result should be somewhere around .5 too, but the D code gives 0.14. Given that it's the average of 10000 runs, it's impossible that that was a random fluctuation, so there's got be a bug in the code. --[[User:Ledrug|Ledrug]] ([[User talk:Ledrug|talk]]) 03:39, 6 March 2014 (UTC)
:: Thank you Ledrug, I'll try to fix that. -[[User:Bearophile|bearophile]] ([[User talk:Bearophile|talk]])
:: Thank you Ledrug, I'll try to fix that. -[[User:Bearophile|bearophile]] ([[User talk:Bearophile|talk]])
:: The D entry is a translation of the Python entry, with some refinements. It seems the Python entry gives the same wrong results: http://ideone.com/ik57yE