Cody

Solution 1629081

Submitted on 17 Sep 2018
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 = 2; assert(isequal(sumOfSeriesV(n),s_correct))

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

2   Fail
n = 3; s_correct = 20; assert(isequal(sumOfSeriesV(n),s_correct))

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

3   Fail
n = 4; s_correct = 40; assert(isequal(sumOfSeriesV(n),s_correct))

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

4   Fail
n = 10; s_correct = 440; assert(isequal(sumOfSeriesV(n),s_correct))

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

5   Fail
n = 21; s_correct = 3542; assert(isequal(sumOfSeriesV(n),s_correct))

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

6   Fail
n = 42; s_correct = 26488; assert(isequal(sumOfSeriesV(n),s_correct))

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

7   Fail
n = 88; s_correct = 234960; assert(isequal(sumOfSeriesV(n),s_correct))

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

8   Fail
n = 99; s_correct = 333300; assert(isequal(sumOfSeriesV(n),s_correct))

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

Suggested Problems

More from this Author9