Cody

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

Solution 1973679

Submitted on 13 Oct 2019 by Nikolaos Nikolaou
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))

y = 5 8 0 10 0

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

y = 15 8 15 2 0

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

y = 60 24 30 2