Cody

Problem 43626. Find scalar product of two polynomials a and b, given as vector array.

Solution 1119703

Submitted on 10 Feb 2017 by Jihye Sofia Seo
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 -1 2]; b=[2 4 1]; y_correct = 0; assert(isequal(PolSol(a,b),y_correct))

2   Pass
a=[ 5 2 0 5 3 0]; b=[ 3 2 5 1 0 2]; y_correct = 24; assert(isequal(PolSol(a,b),y_correct))

Suggested Problems

More from this Author37

Community Treasure Hunt

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

Start Hunting!