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
-
Remove the small words from a list of words.
1304 Solvers
-
2167 Solvers
-
Getting the absolute index from a matrix
240 Solvers
-
461 Solvers
-
Replace Nonzero Numbers with 1
345 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!