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)))
out =
0 0
y =
0.4457
out =
0 0
y =
0.4457
|
3 | Pass |
x = [8 5];
assert(and( ge(bridgeProb(x), 0.00) , le(bridgeProb(x), 0.01)))
out =
0 0
y =
0.0030
out =
0 0
y =
0.0030
|
4 | Pass |
x = [10 5];
assert(and( ge(bridgeProb(x), 0.00) , le(bridgeProb(x), 0.01)))
out =
0 0
y =
0.0014
out =
0 0
y =
0.0014
|
5 | Pass |
x = [8 15];
assert(and( ge(bridgeProb(x), 0.10) , le(bridgeProb(x), 0.12)))
out =
0 0
y =
0.1120
out =
0 0
y =
0.1120
|
6 | Pass |
x = [8 17];
assert(and( ge(bridgeProb(x), 0.15) , le(bridgeProb(x), 0.17)))
out =
0 0
y =
0.1613
out =
0 0
y =
0.1613
|
7 | Pass |
x = [10 35];
assert(and( ge(bridgeProb(x), 0.60) , le(bridgeProb(x), 0.62)))
out =
0 0
y =
0.6126
out =
0 0
y =
0.6126
|
8 | Pass |
x = [10 35];
assert(and( ge(bridgeProb(x), 0.60) , le(bridgeProb(x), 0.62)))
out =
0 0
y =
0.6126
out =
0 0
y =
0.6126
|
9 | Pass |
x = [10 40];
assert(and( ge(bridgeProb(x), 0.78) , le(bridgeProb(x), 0.80)))
out =
0 0
y =
0.7907
out =
0 0
y =
0.7907
|
10 | Pass |
x = [7 20];
assert(and( ge(bridgeProb(x), 0.35) , le(bridgeProb(x), 0.37)))
out =
0 0
y =
0.3630
out =
0 0
y =
0.3630
|
11 | Pass |
x = [8 25];
assert(and( ge(bridgeProb(x), 0.45) , le(bridgeProb(x), 0.47)))
out =
0 0
y =
0.4608
out =
0 0
y =
0.4608
|
12 | Pass |
x = [8 10];
assert(and( ge(bridgeProb(x), 0.01) , le(bridgeProb(x), 0.03)))
out =
0 0
y =
0.0285
out =
0 0
y =
0.0285
|
13 | Pass |
x = [9 15];
assert(and( ge(bridgeProb(x), 0.06) , le(bridgeProb(x), 0.08)))
out =
0 0
y =
0.0773
out =
0 0
y =
0.0773
|
chance in percent for minimum K heads when a good coin is tossed N times?
40 Solvers
307 Solvers
233 Solvers
65 Solvers
25 Solvers