x^2+x-1=0
x^2-1=-x
两边同除以x
x-1/x=-1
x^3-2x+4
=x^3-x-x+4
=x^2(x-1/x)-x+4
=-x^2-x+4
=-(x^2+x-1)+3
=0+3
=3