Problem 42775. Raise a polynomial to a power
Solution Stats
Problem Comments
-
2 Comments
Jess Stuart
on 6 Feb 2017
Thought of another way to do this...
q=poly(kron(roots(p),ones(N,1)));
One-liner with size 21, but fails because of trivial roundoff error :(
Lateef Adewale Kareem
on 7 Apr 2017
This isnt a particularly difficult problem
you can call this function powerpoly
function ppower = powerpoly(p,n)
ppower = p;
i = 1
while i < n
ppower = conv(ppower,p);
i = i + 1;
end
Solution Comments
Show commentsProblem Recent Solvers72
Suggested Problems
-
6977 Solvers
-
Convert a vector into a number
585 Solvers
-
Replace multiples of 5 with NaN
422 Solvers
-
465 Solvers
-
1553 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!