# Hi, I have a fifth order polynomial in x whose coefficients depend on a certain variable k. Now, I want to find the real roots of that polynomial for each value of k. [closed]

Hi, I have a fifth order polynomial in x whose coefficients depend on a certain variable k. Now, I want to find the real roots of that polynomial for each value of k, say from 0.1 to 2 in steps of 0.05 and after finding the roots, I need to plot the corresponding root versus the k from which it was obtained. How can I do that? If anyone could help, that would be highly appreciable.

I have already tried to find the roots for each value of k and then got a set of roots. Then I chose the real root. I repeated this process 20 times to get 20 different roots. But this process is very lengthy. Suppose the value of one of the coefficients is changed, then I need to do the thing all over again. So i need to have a single program, where I can include all of that.