Cody

Problem 43621. Get derivarive of polynomial given as vector array.

Solution 2968987

Submitted on 19 Sep 2020 by Benjamin
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))

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

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