The roots of polynomial $ p(x) $ are:
$$ \begin{aligned}x_1 &= -0.281\\[1 em]x_2 &= 1.3228\\[1 em]x_3 &= 4.9385\\[1 em]x_4 &= -0.4902+0.9215i\\[1 em]x_5 &= -0.4902-0.9215i \end{aligned} $$Polynomial $ -x^5+5x^4-7x-2 $ has no rational roots that can be found using Rational Root Test, so the roots were found using Newton method.