Cody

# Problem 2575. Sum of series I

Solution 1960501

Submitted on 5 Oct 2019
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
n = 1; s_correct = 1; assert(isequal(sumOfSeriesI(n),s_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 sumOfSeriesI (line 2) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 3)]

Output argument "y" (and maybe others) not assigned during call to "sumOfSeriesI". Error in Test1 (line 3) assert(isequal(sumOfSeriesI(n),s_correct))

2   Fail
n = 2; s_correct = 4; assert(isequal(sumOfSeriesI(n),s_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 sumOfSeriesI (line 2) In ScoringEngineTestPoint2 (line 3) In solutionTest (line 5)]

Output argument "y" (and maybe others) not assigned during call to "sumOfSeriesI". Error in Test2 (line 3) assert(isequal(sumOfSeriesI(n),s_correct))

3   Fail
n = 10; s_correct = 100; assert(isequal(sumOfSeriesI(n),s_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 sumOfSeriesI (line 2) In ScoringEngineTestPoint3 (line 3) In solutionTest (line 7)]

Output argument "y" (and maybe others) not assigned during call to "sumOfSeriesI". Error in Test3 (line 3) assert(isequal(sumOfSeriesI(n),s_correct))

4   Fail
n = 15; s_correct = 225; assert(isequal(sumOfSeriesI(n),s_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 sumOfSeriesI (line 2) In ScoringEngineTestPoint4 (line 3) In solutionTest (line 9)]

Output argument "y" (and maybe others) not assigned during call to "sumOfSeriesI". Error in Test4 (line 3) assert(isequal(sumOfSeriesI(n),s_correct))

5   Fail
n = 42; s_correct = 1764; assert(isequal(sumOfSeriesI(n),s_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 sumOfSeriesI (line 2) In ScoringEngineTestPoint5 (line 3) In solutionTest (line 11)]

Output argument "y" (and maybe others) not assigned during call to "sumOfSeriesI". Error in Test5 (line 3) assert(isequal(sumOfSeriesI(n),s_correct))

6   Fail
n = 101; s_correct = 10201; assert(isequal(sumOfSeriesI(n),s_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 sumOfSeriesI (line 2) In ScoringEngineTestPoint6 (line 3) In solutionTest (line 13)]

Output argument "y" (and maybe others) not assigned during call to "sumOfSeriesI". Error in Test6 (line 3) assert(isequal(sumOfSeriesI(n),s_correct))

7   Fail
n = 12345; s_correct = 152399025; assert(isequal(sumOfSeriesI(n),s_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 sumOfSeriesI (line 2) In ScoringEngineTestPoint7 (line 3) In solutionTest (line 15)]

Output argument "y" (and maybe others) not assigned during call to "sumOfSeriesI". Error in Test7 (line 3) assert(isequal(sumOfSeriesI(n),s_correct))