Cody

Solution 2026562

Submitted on 18 Nov 2019 at 15:40
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   Fail
sq = 2; ci = 1; y_correct = (sq>ci); assert(isequal(sqci(sq,ci),y_correct))

Error in solution: Line: 4 Column: 29 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
sq = rand; ci = rand; y_correct = (4*sq^2>pi*ci^2); assert(isequal(sqci(sq,ci),y_correct))

Error in solution: Line: 4 Column: 29 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
sq = 0; ci = 0; y_correct = (0>0); assert(isequal(sqci(sq,ci),y_correct))

Error in solution: Line: 4 Column: 29 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
sq = 100; ci = 4; y_correct = (7>3); assert(isequal(sqci(sq,ci),y_correct))

Error in solution: Line: 4 Column: 29 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

5   Fail
sq = 21; ci = 127; y_correct = (3>7); assert(isequal(sqci(sq,ci),y_correct))

Error in solution: Line: 4 Column: 29 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Suggested Problems

More from this Author100