Cody

Problem 2165. Polynomial Multiplication

Solution 1238376

Submitted on 24 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
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 p = 6 30 48 54 42 24 30 36 0 0 0 p = 6 38 88 118 114 80 62 76 48 0 0 p = 6 38 92 138 146 116 90 92 68 24 0 p = 6 38 92 139 151 124 99 99 72 29 6 p = 0 0 0 0 0 0 p = 1716 7644 4368 5772 936 0 p = 1716 8634 8778 8292 4266 540

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!