Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
sq = 2;
ci = 1;
y_correct = (sq>ci);
assert(isequal(sqci(sq,ci),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In sqci (line 2)
In ScoringEngineTestPoint1 (line 4)
In solutionTest (line 3)]
|
2 | Pass |
sq = rand;
ci = rand;
y_correct = (4*sq^2>pi*ci^2);
assert(isequal(sqci(sq,ci),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In sqci (line 2)
In ScoringEngineTestPoint2 (line 4)
In solutionTest (line 5)]
|
3 | Pass |
sq = 0;
ci = 0;
y_correct = (0>0);
assert(isequal(sqci(sq,ci),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In sqci (line 2)
In ScoringEngineTestPoint3 (line 4)
In solutionTest (line 7)]
|
4 | Pass |
sq = 100;
ci = 4;
y_correct = (7>3);
assert(isequal(sqci(sq,ci),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In sqci (line 2)
In ScoringEngineTestPoint4 (line 4)
In solutionTest (line 9)]
|
5 | Pass |
sq = 21;
ci = 127;
y_correct = (3>7);
assert(isequal(sqci(sq,ci),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In sqci (line 2)
In ScoringEngineTestPoint5 (line 4)
In solutionTest (line 11)]
|
Given an unsigned integer x, find the largest y by rearranging the bits in x
781 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
278 Solvers
238 Solvers
Sum of odd numbers in a matrix
311 Solvers
279 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!