Cody

Solution 1190819

Submitted on 16 May 2017 by Thomas Bischoff
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
L=10; R=3; p = 0.2827; assert( abs(probability(L,R)-p) < 1e-04)

2   Pass
L=1; R=.5; p = 0.7854; assert( abs(probability(L,R)-p) < 1e-04)

3   Pass
L=2; R=.5; p = 0.1963; assert( abs(probability(L,R)-p) < 1e-04)

4   Pass
L=6; R=.2; p = 0.0035; assert( abs(probability(L,R)-p) < 1e-04)