Problem 42775. Raise a polynomial to a power

In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represented by the vector p=[a, b, c].

In this problem, you will be given a polynomial p and a power N. We would like you to return the vector q that represents the polynominal p^N, the Nth power of p. If p = (x + 1), for instance, you will be returning the coefficients of (x+1)^N. (N will be a positive integer greater than 0.)

Solution Stats

62.37% Correct | 37.63% Incorrect
Last Solution submitted on Jun 20, 2020

Problem Comments

Solution Comments

Problem Recent Solvers58

Suggested Problems

More from this Author2