Interesting question: construct a polynomial and then evaluate it
Show older comments
In the normal polynomial root-finding, we could utilized the roots(x) function and passed a vector a x for root.
But what if we have some function:

where r is some fixed constant.
In such case, the roots function definitely could not used in this case, how can i supposed to construct such function and then find its root?
Thanks for your assistance.
Accepted Answer
More Answers (1)
Torsten
on 4 Jul 2016
0 votes
Substitute x^r = y.
Then the polynomial reads
P(y)=a0+a1*y+a2*y^2+...+a_n*y^n
which has the normal form to be used with MATLAB's roots-function.
Best wishes
Torsten.
1 Comment
Walter Roberson
on 4 Jul 2016
You would get out n roots, and then you would have to multiply those by the r roots of unity.
Categories
Find more on Polynomials in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!