Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
c = 1;
y_correct = [];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint1 (line 3)
In solutionTest (line 3)]
|
2 | Pass |
c = 5;
y_correct = [2 11; 5 10];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint2 (line 3)
In solutionTest (line 5)]
|
3 | Pass |
c = 6;
y_correct = [];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint3 (line 3)
In solutionTest (line 7)]
|
4 | Pass |
c = 10;
y_correct = [10 30; 18 26];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint4 (line 3)
In solutionTest (line 9)]
|
5 | Pass |
c = 20;
y_correct = [16 88; 40 80];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint5 (line 3)
In solutionTest (line 11)]
|
6 | Pass |
c = 24;
y_correct = [];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint6 (line 3)
In solutionTest (line 13)]
|
7 | Pass |
c = 40;
y_correct = [80 240; 144 208];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint7 (line 3)
In solutionTest (line 15)]
|
8 | Pass |
c = 65;
y_correct = [7 524; 65 520; 140 505; 191 488; 208 481; 260 455; 320 415; 364 377];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint8 (line 3)
In solutionTest (line 17)]
|
9 | Pass |
c = 100;
y_correct = [280 960; 352 936; 600 800];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint9 (line 3)
In solutionTest (line 19)]
|
10 | Pass |
c = 123;
y_correct = [];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint10 (line 3)
In solutionTest (line 21)]
|
11 | Pass |
c = 340;
y_correct = [408 6256;1360 6120; 1680 6040; 2280 5840; 2584 5712; 3304 5328; 3824 4968; 4080 4760];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint11 (line 3)
In solutionTest (line 23)]
|
12 | Pass |
c = 500;
y_correct = [1160 11120; 2000 11000; 5000 10000; 5744 9592; 7600 8200];
assert(isequal(sumoftwosquares(c),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 sumoftwosquares (line 2)
In ScoringEngineTestPoint12 (line 3)
In solutionTest (line 25)]
|
Find the sum of the elements in the "second" diagonal
879 Solvers
Make a random, non-repeating vector.
1115 Solvers
Who is the smartest MATLAB programmer?
469 Solvers
296 Solvers
208 Solvers