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 Solvers71
Suggested Problems
-
623 Solvers
-
371 Solvers
-
Relative ratio of "1" in binary number
1035 Solvers
-
166 Solvers
-
688 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!