x^2-2x-1=0的两个实数根为x1,x2
根据韦达定理,知
x1+x2=2
x1x2=-1
则(x1-1)(x2-1)
=x1x2-x1-x2+1
=-1-(x1+x2)+1
=-1-2+1
=-2