Cody

Solution 1516972

Submitted on 4 May 2018 by William
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
p = [ 1 2 0 5 0 3 ]; y_correct = [ 5 8 0 10 0 ]; assert(isequal(PolyPol(p),y_correct))

2   Pass
p = [ 3 2 5 1 0 2]; y_correct = [ 15 8 15 2 0 ]; assert(isequal(PolyPol(p),y_correct))

3   Pass
p = [ 15 8 15 2 0 ]; y_correct = [ 60 24 30 2 ]; assert(isequal(PolyPol(p),y_correct))