If two roots of the equation x3-3x+2=0 are same, then the roots will be
2, 2, 3
1, 1, -2
-2, 3, 3
-2, -2, 1
given equation is x3-3x+2=0
⇒x2(x-1)+x(x-1)-2(x-1)=0
⇒(x-1)(x2+x-2)=0⇒(x-1)(x-1)(x+2)=0
Hence roots are 1, 1, -2