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))
|
2979 Solvers
Who knows the last digit of pi?
557 Solvers
344 Solvers
555 Solvers
260 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!