Cody

Solution 1800243

Submitted on 29 Apr 2019 by William
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
filetext = fileread('bridgeProb.m'); assert(isempty(strfind(filetext, 'assert'))) assert(isempty(strfind(filetext, 'echo')))

2   Pass
x = [3 10]; assert(and( ge(bridgeProb(x), 0.43) , le(bridgeProb(x), 0.45)))

3   Pass
x = [8 5]; assert(and( ge(bridgeProb(x), 0.00) , le(bridgeProb(x), 0.01)))

4   Pass
x = [10 5]; assert(and( ge(bridgeProb(x), 0.00) , le(bridgeProb(x), 0.01)))

5   Pass
x = [8 15]; assert(and( ge(bridgeProb(x), 0.10) , le(bridgeProb(x), 0.12)))

6   Pass
x = [8 17]; assert(and( ge(bridgeProb(x), 0.15) , le(bridgeProb(x), 0.17)))

7   Pass
x = [10 35]; assert(and( ge(bridgeProb(x), 0.60) , le(bridgeProb(x), 0.62)))

8   Pass
x = [10 35]; assert(and( ge(bridgeProb(x), 0.60) , le(bridgeProb(x), 0.62)))

9   Pass
x = [10 40]; assert(and( ge(bridgeProb(x), 0.78) , le(bridgeProb(x), 0.80)))

10   Pass
x = [7 20]; assert(and( ge(bridgeProb(x), 0.35) , le(bridgeProb(x), 0.37)))

11   Pass
x = [8 25]; assert(and( ge(bridgeProb(x), 0.45) , le(bridgeProb(x), 0.47)))

12   Pass
x = [8 10]; assert(and( ge(bridgeProb(x), 0.01) , le(bridgeProb(x), 0.03)))

13   Pass
x = [9 15]; assert(and( ge(bridgeProb(x), 0.06) , le(bridgeProb(x), 0.08)))

More from this Author57