This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
sq = 2;
ci = 1;
y_correct = (sq>ci);
assert(isequal(sqci(sq,ci),y_correct))
y1 =
4
y1 =
4.0000 4.9348
t =
1
y =
1
|
2 | Pass |
sq = rand;
ci = rand;
y_correct = (4*sq^2>pi*ci^2);
assert(isequal(sqci(sq,ci),y_correct))
y1 =
0.0692
y1 =
0.0692 2.4591
y =
0
|
3 | Pass |
sq = 0;
ci = 0;
y_correct = (0>0);
assert(isequal(sqci(sq,ci),y_correct))
y1 =
0
y1 =
0 0
t =
2
y =
0
|
4 | Pass |
sq = 100;
ci = 4;
y_correct = (7>3);
assert(isequal(sqci(sq,ci),y_correct))
y1 =
10000
y1 =
1.0e+04 *
1.0000 0.0020
y =
1
|
5 | Pass |
sq = 21;
ci = 127;
y_correct = (3>7);
assert(isequal(sqci(sq,ci),y_correct))
y1 =
441
y1 =
441.0000 626.7199
y =
0
|
1313 Solvers
153 Solvers
160 Solvers
285 Solvers
309 Solvers