Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
R=4; B=8;
N=50; K=25;
p = 0.0059;
assert( abs(probability(R,B,N,K)-p)<1e-04 );
|
2 | Pass |
R=22; B=6;
N=32; K=23;
p = 0.1042;
assert( abs(probability(R,B,N,K)-p)<1e-04 );
|
3 | Pass |
R=2; B=4;
N=25; K=2;
p = 0.0030;
assert( abs(probability(R,B,N,K)-p)<1e-04 );
|
4 | Pass |
R=0; B=4;
N=25; K=2;
assert( isequal(probability(R,B,N,K),0) );
|
5 | Pass |
R=9; B=0;
N=25; K=2;
assert( isequal(probability(R,B,N,K),0) );
|
6 | Pass |
R=9; B=0;
N=25; K=25;
assert( isequal(probability(R,B,N,K),1) );
|
Remove any row in which a NaN appears
6826 Solvers
Remove the polynomials that have positive real elements of their roots.
629 Solvers
Area of an equilateral triangle
2759 Solvers
2334 Solvers
2617 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!