Cody

Solution 1190772

Submitted on 16 May 2017 by Thomas Bischoff
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   Pass
x = [1 3 5 7 9 11 13 15 17 19]; y=[ 1 4 7 10 13 16 19 22 25 28]; y_correct = [ 1 12 35 70 117 176 247 330 425 532]; assert(isequal(your_fcn_name(x,y),y_correct))

2   Pass
x = [1 12 23 34 45 56 67 78 89 100]; y=[ 1 -10 -21 -32 -43 -54 -65 -76 -87 -98]; y_correct = [ 1 -120 -483 -1088 -1935 -3024 -4355 -5928 -7743 -9800]; assert(isequal(your_fcn_name(x,y),y_correct))