Binomial sampling: limit max n and use powi#752
Conversation
|
Would it make sense to make
Which method? The implementation currently used in Rand seems to return the correct result. |
|
It does seem unfortunate, but is likely quite a rare case that Also note that this method calculates
As mentioned, when run on emulated MIPS through |
Interesting, this likely affects the |
vks
left a comment
There was a problem hiding this comment.
I would prefer to fix our pow function on MIPS, but let's merge it for now to fix this weird failure.
|
Yes, I double-checked the Good call. This is the first all-green build I've seen here in a while! |
Fix #747
@vks I know you didn't favour this approach, but it does fix the test.
(Any idea why the
powmethod is generating incorrect results? Apparentlypow(0.7, 20) = 0.0000459986536544739.)