Cody

Solution 1076768

Submitted on 7 Dec 2016 by goc3
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))

ans = 5 8 0 10 0

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

ans = 15 8 15 2 0

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

ans = 60 24 30 2