Cody

Problem 2165. Polynomial Multiplication

Solution 1238375

Submitted on 24 Jul 2017
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   Fail
a = [ 1 5 8 9 7 4 5 6]; b = [ 6 8 4 1 ]; y_correct = [ 6 38 92 139 151 124 99 99 72 29 6]; assert(isequal(multiply(a,b),y_correct)) a = [ 22 98 56 74 12]; b = [78 45 ]; y_correct = [ 1716 8634 8778 8292 4266 540]; assert(isequal(multiply(a,b),y_correct))

p = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 p = 6 0 0 0 0 0 0 0 0 0 0 30 0 0 0 0 0 0 0 0 0 0 48 0 0 0 0 0 0 0 0 0 0 54 0 0 0 0 0 0 0 0 0 0 42 0 0 0 0 0 0 0 0 0 0 24 0 0 0 0 0 0 0 0 0 0 30 0 0 0 0 0 0 0 0 0 0 36 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 p = 6 0 0 0 0 0 0 0 0 0 0 38 0 0 0 0 0 0 0 0 0 0 88 0 0 0 0 0 0 0 0 0 0 118 0 0 0 0 0 0 0 0 0 0 114 0 0 0 0 0 0 0 0 0 0 80 0 0 0 0 0 0 0 0 0 0 62 0 0 0 0 0 0 0 0 0 0 76 0 0 0 0 0 0 0 0 0 0 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 p = 6 0 0 0 0 0 0 0 0 0 0 38 0 0 0 0 0 0 0 0 0 0 92 0 0 0 0 0 0 0 0 0 0 138 0 0 0 0 0 0 0 0 0 0 146 0 0 0 0 0 0 0 0 0 0 116 0 0 0 0 0 0 0 0 0 0 90 0 0 0 0 0 0 0 0 0 0 92 0 0 0 0 0 0 0 0 0 0 68 0 0 0 0 0 0 0 0 0 0 24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 p = 6 0 0 0 0 0 0 0 0 0 0 38 0 0 0 0 0 0 0 0 0 0 92 0 0 0 0 0 0 0 0 0 0 139 0 0 0 0 0 0 0 0 0 0 151 0 0 0 0 0 0 0 0 0 0 124 0 0 0 0 0 0 0 0 0 0 99 0 0 0 0 0 0 0 0 0 0 99 0 0 0 0 0 0 0 0 0 0 72 0 0 0 0 0 0 0 0 0 0 29 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0

Assertion failed.

Suggested Problems

More from this Author4

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!