Cody

Solution 1967107

Submitted on 8 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
x = 1; y_correct = 2; assert(isequal(OctoberfestFestival(x),y_correct))

ans = 1.0e+20 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 19 through 36 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 37 through 54 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 55 through 72 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 73 through 90 0.0000 0.0000 0.0000 0.0000 0.0001 0.0001 0.0001 0.0002 0.0004 0.0006 0.0010 0.0016 0.0026 0.0042 0.0068 0.0110 0.0178 0.0288 Columns 91 through 100 0.0466 0.0754 0.1220 0.1974 0.3194 0.5168 0.8362 1.3530 2.1892 3.5422

Unrecognized function or variable 'x'. Error in OctoberfestFestival (line 3) sum(ans(1:x+1)) Error in Test1 (line 3) assert(isequal(OctoberfestFestival(x),y_correct))

2   Fail
x = 5; y_correct = 20; assert(isequal(OctoberfestFestival(x),y_correct))

ans = 1.0e+20 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 19 through 36 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 37 through 54 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 55 through 72 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 73 through 90 0.0000 0.0000 0.0000 0.0000 0.0001 0.0001 0.0001 0.0002 0.0004 0.0006 0.0010 0.0016 0.0026 0.0042 0.0068 0.0110 0.0178 0.0288 Columns 91 through 100 0.0466 0.0754 0.1220 0.1974 0.3194 0.5168 0.8362 1.3530 2.1892 3.5422

Unrecognized function or variable 'x'. Error in OctoberfestFestival (line 3) sum(ans(1:x+1)) Error in Test2 (line 3) assert(isequal(OctoberfestFestival(x),y_correct))

3   Fail
x = 10; y_correct = 232; assert(isequal(OctoberfestFestival(x),y_correct))

ans = 1.0e+20 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 19 through 36 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 37 through 54 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 55 through 72 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 73 through 90 0.0000 0.0000 0.0000 0.0000 0.0001 0.0001 0.0001 0.0002 0.0004 0.0006 0.0010 0.0016 0.0026 0.0042 0.0068 0.0110 0.0178 0.0288 Columns 91 through 100 0.0466 0.0754 0.1220 0.1974 0.3194 0.5168 0.8362 1.3530 2.1892 3.5422

Unrecognized function or variable 'x'. Error in OctoberfestFestival (line 3) sum(ans(1:x+1)) Error in Test3 (line 3) assert(isequal(OctoberfestFestival(x),y_correct))