The roots of polynomial $ p(x) $ are:
$$ \begin{aligned}x_1 &= -0.256\\[1 em]x_2 &= 0.6702\\[1 em]x_3 &= 1.4921\\[1 em]x_4 &= -3.9063 \end{aligned} $$Polynomial $ x^4+2x^3-7x^2+2x+1 $ has no rational roots that can be found using Rational Root Test, so the roots were found using quartic formulas.