Cody

Solution 1024865

Submitted on 20 Oct 2016 by SirSteve26
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)

p = 0.2827

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

p = 0.7854

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

p = 0.1963

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

p = 0.0035