Cody

Solution 1239458

Submitted on 26 Jul 2017 by Augusto Mazzei
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
u = [1 3 5 3]; v = [1,1]; y_correct = [1 2 3]; assert(isequal(poly_div(u,v),y_correct));

y = 1 u = 0 2 5 3 y = 1 2 u = 0 0 3 3 y = 1 2 3 u = 0 0 0 0

2   Pass
u=[4 -2 -14 -3 17 21 9]; v = [1 2 1]; y_correct = [4 -10 2 3 9]; assert(isequal(poly_div(u,v),y_correct));

y = 4 u = 0 -10 -18 -3 17 21 9 y = 4 -10 u = 0 0 2 7 17 21 9 y = 4 -10 2 u = 0 0 0 3 15 21 9 y = 4 -10 2 3 u = 0 0 0 0 9 18 9 y = 4 -10 2 3 9 u = 0 0 0 0 0 0 0

Suggested Problems