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
-
middleAsColumn: Return all but first and last element as a column vector
575 Solvers
-
Is this triangle right-angled?
4800 Solvers
-
234 Solvers
-
342 Solvers
-
973 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!